#6038CF#6038CF

#6038CF is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.216 H 287.5°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#6038CF
RGBrgb(96, 56, 207)
HSLhsl(256, 61%, 52%)
HSVhsv(256, 73%, 81%)
CMYKcmyk(53.6%, 72.9%, 0%, 18.8%)
CIE-LABlab(37.52, 53.76, -71.69)
CIE-LCHlch(37.52, 89.61, 306.87°)
OKLaboklab(48.52% 0.0651 -0.2062)
OKLCHoklch(48.52% 0.216 287.5)
XYZxyz(17.4972, 9.8192, 59.9927)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038CF #A7CF38
analogous
#385CCF #6038CF #AC38CF
triadic
#6038CF #CF6038 #38CF60
tetradic
#6038CF #CF385C #A7CF38 #38CFAC
square
#6038CF #CF385C #A7CF38 #38CFAC
split-complementary
#6038CF #CFAC38 #5CCF38
monochromatic
#321B71 #4827A3 #6038CF #8769DB #AF9BE7

Accessibility & contrast

On white

7.09
#6038CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#6038CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038CF
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038CF#FFFFFF#000000##FFFFFF
##6038CF1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#326180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6038cf;
/* rgb */ color: rgb(96, 56, 207);
/* oklch */ color: oklch(48.5% 0.216 287.5);
Tailwind
colors: {
  custom: {
    50: '#9873df',
    500: '#6038cf',
    950: '#000000',
  },
}
SCSS
$custom: #6038cf;
$custom-light: #9873df;
$custom-dark: #000000;
JSON
{
  "hex": "#6038cf",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 255.894,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48519,
    "c": 0.21623,
    "h": 287.5
  },
  "luminance": 0.0982
}

Semantic roles & 50–950 ramp

primary
#6038CF
secondary
#C1D390
accent
#E444BA
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6038CF

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

Preview Lab → · Contrast checker → · Palette generator →

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