#6038C6#6038C6

#6038C6 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.206 H 289.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#6038C6
RGBrgb(96, 56, 198)
HSLhsl(257, 56%, 50%)
HSVhsv(257, 72%, 78%)
CMYKcmyk(51.5%, 71.7%, 0%, 22.4%)
CIE-LABlab(36.73, 51.24, -67.75)
CIE-LCHlch(36.73, 84.95, 307.10°)
OKLaboklab(47.72% 0.0671 -0.1946)
OKLCHoklch(47.72% 0.206 289)
XYZxyz(16.4281, 9.3916, 54.3623)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038C6 #9EC638
analogous
#3857C6 #6038C6 #A738C6
triadic
#6038C6 #C66038 #38C660
tetradic
#6038C6 #C63857 #9EC638 #38C6A7
square
#6038C6 #C63857 #9EC638 #38C6A7
split-complementary
#6038C6 #C6A738 #57C638
monochromatic
#321D67 #492B96 #6038C6 #8667D4 #AC97E2

Accessibility & contrast

On white

7.30
#6038C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6038C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038C6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038C6#FFFFFF#000000##FFFFFF
##6038C61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#3A5E7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6038c6;
/* rgb */ color: rgb(96, 56, 198);
/* oklch */ color: oklch(47.7% 0.206 289.0);
Tailwind
colors: {
  custom: {
    50: '#9772d8',
    500: '#6038c6',
    950: '#000000',
  },
}
SCSS
$custom: #6038c6;
$custom-light: #9772d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6038c6",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 256.901,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47719,
    "c": 0.20588,
    "h": 289
  },
  "luminance": 0.09392
}

Semantic roles & 50–950 ramp

primary
#6038C6
secondary
#BBCD8D
accent
#DF49B5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6038C6

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

Preview Lab → · Contrast checker → · Palette generator →

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