#6038D3#6038D3

#6038D3 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.221 H 286.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#6038D3
RGBrgb(96, 56, 211)
HSLhsl(255, 64%, 52%)
HSVhsv(255, 73%, 83%)
CMYKcmyk(54.5%, 73.5%, 0%, 17.3%)
CIE-LABlab(37.87, 54.88, -73.42)
CIE-LCHlch(37.87, 91.66, 306.78°)
OKLaboklab(48.88% 0.0642 -0.2112)
OKLCHoklch(48.88% 0.221 286.9)
XYZxyz(17.9924, 10.0173, 62.6009)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038D3 #ABD338
analogous
#385DD3 #6038D3 #AE38D3
triadic
#6038D3 #D36038 #38D360
tetradic
#6038D3 #D3385D #ABD338 #38D3AE
square
#6038D3 #D3385D #ABD338 #38D3AE
split-complementary
#6038D3 #D3AE38 #5DD338
monochromatic
#321A76 #4725A9 #6038D3 #886ADE #B09CE9

Accessibility & contrast

On white

6.99
#6038D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#6038D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6038D3
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038D3#FFFFFF#000000##FFFFFF
##6038D31.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD7
Deuteranopia (green-blind)
#0055D0
Tritanopia (blue-blind)
#2E6383
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6038d3;
/* rgb */ color: rgb(96, 56, 211);
/* oklch */ color: oklch(48.9% 0.221 286.9);
Tailwind
colors: {
  custom: {
    50: '#9973e2',
    500: '#6038d3',
    950: '#000000',
  },
}
SCSS
$custom: #6038d3;
$custom-light: #9973e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6038d3",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 211
  },
  "hsl": {
    "h": 255.484,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4888,
    "c": 0.22077,
    "h": 286.9
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#6038D3
secondary
#C4D592
accent
#E741BC
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #6038D3

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

Preview Lab → · Contrast checker → · Palette generator →

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