Color Converter & Design Token Studio
Convert HEX, RGB, HSL, HWB and perceptual color values. Preview real opacity, check contrast and deliver named color tokens—privately in your browser.
Perceptual & colorimetric conversions
High-precision internal math; display rounding is separate. CIE Lab uses D50 white, OKLab uses D65. Out-of-gamut sRGB copies are explicitly approximations.
Numerical Display P3 conversion does not guarantee a wide-gamut screen preview or ICC-calibrated printing. Chroma mapping changes the current color and can be undone.
Contrast on your chosen surface
Build named design tokens
Each token has its own name, theme and original color notation. Collections can be downloaded and reopened without an account.
Batch paste
One color per line: Primary: #6C5CE7, --surface: rgb(255 255 255 / 95%); or quoted CSV name,color. Maximum 200 rows.
Export and reopen
CSS, SCSS, JSON, CSV, SVG, PNG and GIMP palette files use actual token colors. sRGB PNG/GPL output is not a color-managed print profile.
JSON is the editable backup; other outputs are handoffs. Restoring JSON explicitly requests permission before replacing the collection.
How to use Color Converter & Design Token Studio
- Paste a supported HEX, rgb()/rgba() or hsl()/hsla() value and apply it. You can also use the HEX field or color picker directly.
- Adjust opacity using the slider. The preview shows the color over a checkerboard so transparency stays visible.
- Read the RGB, HSL, HSV and alpha-HEX results. Copy a CSS value or the HSV components for another application.
When to use this tool
Translate a design color into the CSS notation needed by a stylesheet or component API. Check opacity and preview the result against its intended background.
RGB, perceptual color and design tokens
HEX and RGB specify red, green and blue channels. HSL uses hue, saturation and lightness; HSV uses hue, saturation and value. HSL and HSV saturation are different calculations, so their numbers need not match. Alpha describes opacity separately from those color channels. Four- and eight-digit HEX include alpha as the final channel. OKLab/OKLCH are perceptual numeric models; CIE Lab/LCH use D50 adaptation. A Display P3 color can fall outside sRGB, so HEX may approximate it by clipping.
Worked example
Input: hsl(0, 100%, 50%)
RGB: rgba(255, 0, 0, 1.00)
HSL: hsla(0, 100%, 50%, 1.00)
HSV: 0°, 100%, 100%
Alpha HEX: #ff0000ff Carry alpha into CSS without treating the token as opaque
For an authored exercise, enter rgba(20, 100, 180, 0.5) in the color-value input and apply it. Review the RGB channels separately from 50% opacity.
- Copy the notation the receiving component accepts, checking whether it includes alpha. Four/eight-digit HEX puts alpha last.
- Review the token over the actual destination background. Its displayed color is not fixed independently of that background.
- Keep HSL and HSV saturation separate; their percentages describe different models and are not interchangeable.
- Retain the original when precision matters, because channel/alpha rounding can affect round trips.
Authored token, no rendering measurement. The checkerboard is a transparency aid, not the destination surface. CSS variables are not evaluated; numeric wide-gamut Display P3 input receives an sRGB gamut warning when needed. Use Color Contrast Checker for suitable opaque pairs or Palette Generator for related candidates.
Limits and output checks
Input accepts HEX/HEXA, RGB/HSL/HWB/HSV notation, CSS named colors, OKLab/OKLCH, CIE Lab/LCH and numeric Display P3. CSS variables, relative colors and full ICC/print workflows are not resolved. Out-of-sRGB input is reported; HEX uses a clipped approximation. Animated/local image sampling and color-mix() are not available.
Reference: CSS color values.
Frequently asked questions
Can I paste RGB percentages or modern CSS syntax?
Yes. Numeric or percentage RGB channels, comma or space separators and slash alpha are supported. Out-of-range sRGB channels are clamped according to the documented input policy; out-of-gamut perceptual inputs retain original channel math and show a warning.
Why does HSL saturation differ from HSV saturation?
The models use different definitions for lightness and value. Their saturation percentages are not interchangeable.
Does alpha change the underlying HEX color?
The RGB channels remain the base color. Alpha controls how much of a background contributes when the color is composited.
Keep color channels separate from transparency
Enter a supported HEX, RGB or HSL value and inspect the other representations. Retain the original value when a precise round trip matters.
Scope of this workflow
The converter handles sRGB notations and numeric Display P3 with explicit sRGB gamut warnings. It does not resolve arbitrary CSS variables, device ICC profiles or print color management. Alpha describes compositing rather than changing underlying RGB channels.
Color Contrast Checker — WCAG AA & AAA · All developer tools · Privacy policy · Contact PixelOkay
V2 creator workflows and color accuracy
To build a brand kit, paste one color, choose Token Studio, give it a distinct name and Light/Dark theme, then export CSS custom properties or editable JSON. Batch validate named lines before adding them; erroneous lines remain visible and downloadable.
To compare a translucent accent, paste an RGBA or HEXA value, select the real destination background and inspect the opaque composite. Color Lab measures WCAG 2.2 contrast for that composite used as foreground text. AA normal text is 4.5:1; even a passing ratio does not guarantee overall accessibility.
To preserve unusual colors, use OKLCH or numerical Display P3 notation. When a value lies outside sRGB, ordinary HEX is labeled a clipped approximation. Gamut mapping, approximate on-screen rendering and print color management are separate concerns; no ICC/CMYK proofing is claimed.