#6038D2#6038D2

#6038D2 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.8% C 0.220 H 287.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#6038D2
RGBrgb(96, 56, 210)
HSLhsl(256, 63%, 52%)
HSVhsv(256, 73%, 82%)
CMYKcmyk(54.3%, 73.3%, 0%, 17.6%)
CIE-LABlab(37.78, 54.60, -72.99)
CIE-LCHlch(37.78, 91.15, 306.80°)
OKLaboklab(48.79% 0.0644 -0.21)
OKLCHoklch(48.79% 0.22 287.1)
XYZxyz(17.8674, 9.9673, 61.9427)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038D2 #AAD238
analogous
#385DD2 #6038D2 #AD38D2
triadic
#6038D2 #D26038 #38D260
tetradic
#6038D2 #D2385D #AAD238 #38D2AD
square
#6038D2 #D2385D #AAD238 #38D2AD
split-complementary
#6038D2 #D2AD38 #5DD238
monochromatic
#321A75 #4726A7 #6038D2 #886ADD #B09CE9

Accessibility & contrast

On white

7.01
#6038D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6038D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038D2
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038D2#FFFFFF#000000##FFFFFF
##6038D21.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#2F6282
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6038d2;
/* rgb */ color: rgb(96, 56, 210);
/* oklch */ color: oklch(48.8% 0.220 287.1);
Tailwind
colors: {
  custom: {
    50: '#9973e1',
    500: '#6038d2',
    950: '#000000',
  },
}
SCSS
$custom: #6038d2;
$custom-light: #9973e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6038d2",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 255.584,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4879,
    "c": 0.21964,
    "h": 287.1
  },
  "luminance": 0.09968
}

Semantic roles & 50–950 ramp

primary
#6038D2
secondary
#C3D591
accent
#E642BB
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #6038D2

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

Preview Lab → · Contrast checker → · Palette generator →

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