#6038CD#6038CD

#6038CD is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.214 H 287.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#6038CD
RGBrgb(96, 56, 205)
HSLhsl(256, 60%, 51%)
HSVhsv(256, 73%, 80%)
CMYKcmyk(53.2%, 72.7%, 0%, 19.6%)
CIE-LABlab(37.34, 53.20, -70.82)
CIE-LCHlch(37.34, 88.58, 306.91°)
OKLaboklab(48.34% 0.0656 -0.2036)
OKLCHoklch(48.34% 0.214 287.9)
XYZxyz(17.2542, 9.7221, 58.7132)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038CD #A5CD38
analogous
#385ACD #6038CD #AA38CD
triadic
#6038CD #CD6038 #38CD60
tetradic
#6038CD #CD385A #A5CD38 #38CDAA
square
#6038CD #CD385A #A5CD38 #38CDAA
split-complementary
#6038CD #CDAA38 #5ACD38
monochromatic
#321C6F #4828A0 #6038CD #8769D9 #AE9AE6

Accessibility & contrast

On white

7.13
#6038CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#6038CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038CD
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038CD#FFFFFF#000000##FFFFFF
##6038CD1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#34607F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6038cd;
/* rgb */ color: rgb(96, 56, 205);
/* oklch */ color: oklch(48.3% 0.214 287.9);
Tailwind
colors: {
  custom: {
    50: '#9873dd',
    500: '#6038cd',
    950: '#000000',
  },
}
SCSS
$custom: #6038cd;
$custom-light: #9873dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6038cd",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 256.107,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4834,
    "c": 0.21393,
    "h": 287.9
  },
  "luminance": 0.09723
}

Semantic roles & 50–950 ramp

primary
#6038CD
secondary
#C0D18F
accent
#E345B9
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6038CD

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

Preview Lab → · Contrast checker → · Palette generator →

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