#6038CA#6038CA

#6038CA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.210 H 288.3°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#6038CA
RGBrgb(96, 56, 202)
HSLhsl(256, 58%, 51%)
HSVhsv(256, 72%, 79%)
CMYKcmyk(52.5%, 72.3%, 0%, 20.8%)
CIE-LABlab(37.08, 52.36, -69.51)
CIE-LCHlch(37.08, 87.03, 306.99°)
OKLaboklab(48.07% 0.0663 -0.1998)
OKLCHoklch(48.07% 0.21 288.3)
XYZxyz(16.8956, 9.5786, 56.8243)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038CA #A2CA38
analogous
#3859CA #6038CA #A938CA
triadic
#6038CA #CA6038 #38CA60
tetradic
#6038CA #CA3859 #A2CA38 #38CAA9
square
#6038CA #CA3859 #A2CA38 #38CAA9
split-complementary
#6038CA #CAA938 #59CA38
monochromatic
#321D6B #49299B #6038CA #8768D7 #AD99E4

Accessibility & contrast

On white

7.20
#6038CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#6038CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038CA
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038CA#FFFFFF#000000##FFFFFF
##6038CA1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#375F7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6038ca;
/* rgb */ color: rgb(96, 56, 202);
/* oklch */ color: oklch(48.1% 0.210 288.3);
Tailwind
colors: {
  custom: {
    50: '#9772db',
    500: '#6038ca',
    950: '#000000',
  },
}
SCSS
$custom: #6038ca;
$custom-light: #9772db;
$custom-dark: #000000;
JSON
{
  "hex": "#6038ca",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 256.438,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48072,
    "c": 0.21049,
    "h": 288.3
  },
  "luminance": 0.09579
}

Semantic roles & 50–950 ramp

primary
#6038CA
secondary
#BECF8E
accent
#E147B7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6038CA

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

Preview Lab → · Contrast checker → · Palette generator →

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