#6038F2#6038F2

#6038F2 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.8% C 0.255 H 282.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6038F2
RGBrgb(96, 56, 242)
HSLhsl(253, 88%, 58%)
HSVhsv(253, 77%, 95%)
CMYKcmyk(60.3%, 76.9%, 0%, 5.1%)
CIE-LABlab(40.77, 63.48, -86.32)
CIE-LCHlch(40.77, 107.15, 306.33°)
OKLaboklab(51.79% 0.0562 -0.2489)
OKLCHoklch(51.79% 0.255 282.7)
XYZxyz(22.2601, 11.7244, 85.0772)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038F2 #CAF238
analogous
#386DF2 #6038F2 #BD38F2
triadic
#6038F2 #F26038 #38F260
tetradic
#6038F2 #F2386D #CAF238 #38F2BD
square
#6038F2 #F2386D #CAF238 #38F2BD
split-complementary
#6038F2 #F2BD38 #6DF238
monochromatic
#2C0BA5 #3B0FDE #6038F2 #8E71F6 #BCABFA

Accessibility & contrast

On white

6.28
#6038F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6038F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6038F2
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038F2#FFFFFF#000000##FFFFFF
##6038F21.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066F7
Deuteranopia (green-blind)
#005AEF
Tritanopia (blue-blind)
#006F94
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6038f2;
/* rgb */ color: rgb(96, 56, 242);
/* oklch */ color: oklch(51.8% 0.255 282.7);
Tailwind
colors: {
  custom: {
    50: '#9e74f8',
    500: '#6038f2',
    950: '#000000',
  },
}
SCSS
$custom: #6038f2;
$custom-light: #9e74f8;
$custom-dark: #000000;
JSON
{
  "hex": "#6038f2",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 242
  },
  "hsl": {
    "h": 252.903,
    "s": 87.736,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51788,
    "c": 0.25521,
    "h": 282.7
  },
  "luminance": 0.11726
}

Semantic roles & 50–950 ramp

primary
#6038F2
secondary
#D8E89E
accent
#FE2AD0
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6038F2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#6038F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva