#6038D1#6038D1

#6038D1 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.218 H 287.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#6038D1
RGBrgb(96, 56, 209)
HSLhsl(256, 62%, 52%)
HSVhsv(256, 73%, 82%)
CMYKcmyk(54.1%, 73.2%, 0%, 18%)
CIE-LABlab(37.69, 54.32, -72.56)
CIE-LCHlch(37.69, 90.64, 306.82°)
OKLaboklab(48.7% 0.0647 -0.2087)
OKLCHoklch(48.7% 0.219 287.2)
XYZxyz(17.7432, 9.9177, 61.2886)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038D1 #A9D138
analogous
#385DD1 #6038D1 #AC38D1
triadic
#6038D1 #D16038 #38D160
tetradic
#6038D1 #D1385D #A9D138 #38D1AC
square
#6038D1 #D1385D #A9D138 #38D1AC
split-complementary
#6038D1 #D1AC38 #5DD138
monochromatic
#321B74 #4826A6 #6038D1 #886ADC #AF9BE8

Accessibility & contrast

On white

7.04
#6038D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6038D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038D1
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038D1#FFFFFF#000000##FFFFFF
##6038D11.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD5
Deuteranopia (green-blind)
#0054CE
Tritanopia (blue-blind)
#306282
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6038d1;
/* rgb */ color: rgb(96, 56, 209);
/* oklch */ color: oklch(48.7% 0.218 287.2);
Tailwind
colors: {
  custom: {
    50: '#9873e0',
    500: '#6038d1',
    950: '#000000',
  },
}
SCSS
$custom: #6038d1;
$custom-light: #9873e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6038d1",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 255.686,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48699,
    "c": 0.2185,
    "h": 287.2
  },
  "luminance": 0.09919
}

Semantic roles & 50–950 ramp

primary
#6038D1
secondary
#C2D491
accent
#E642BB
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6038D1

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

Preview Lab → · Contrast checker → · Palette generator →

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