#6038CC#6038CC

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

Color values

HEX#6038CC
RGBrgb(96, 56, 204)
HSLhsl(256, 59%, 51%)
HSVhsv(256, 73%, 80%)
CMYKcmyk(52.9%, 72.5%, 0%, 20%)
CIE-LABlab(37.25, 52.92, -70.39)
CIE-LCHlch(37.25, 88.06, 306.94°)
OKLaboklab(48.25% 0.0658 -0.2023)
OKLCHoklch(48.25% 0.213 288)
XYZxyz(17.1339, 9.6739, 58.0795)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038CC #A4CC38
analogous
#385ACC #6038CC #AA38CC
triadic
#6038CC #CC6038 #38CC60
tetradic
#6038CC #CC385A #A4CC38 #38CCAA
square
#6038CC #CC385A #A4CC38 #38CCAA
split-complementary
#6038CC #CCAA38 #5ACC38
monochromatic
#321C6E #48299E #6038CC #8769D8 #AE99E5

Accessibility & contrast

On white

7.16
#6038CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6038CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038CC
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038CC#FFFFFF#000000##FFFFFF
##6038CC1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#35607F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6038cc;
/* rgb */ color: rgb(96, 56, 204);
/* oklch */ color: oklch(48.3% 0.213 288.0);
Tailwind
colors: {
  custom: {
    50: '#9872dd',
    500: '#6038cc',
    950: '#000000',
  },
}
SCSS
$custom: #6038cc;
$custom-light: #9872dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6038cc",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 256.216,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4825,
    "c": 0.21279,
    "h": 288
  },
  "luminance": 0.09675
}

Semantic roles & 50–950 ramp

primary
#6038CC
secondary
#BFD18F
accent
#E245B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6038CC

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

Preview Lab → · Contrast checker → · Palette generator →

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