#6038C9#6038C9

#6038C9 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.209 H 288.5°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#6038C9
RGBrgb(96, 56, 201)
HSLhsl(257, 57%, 50%)
HSVhsv(257, 72%, 79%)
CMYKcmyk(52.2%, 72.1%, 0%, 21.2%)
CIE-LABlab(36.99, 52.08, -69.08)
CIE-LCHlch(36.99, 86.51, 307.02°)
OKLaboklab(47.98% 0.0665 -0.1985)
OKLCHoklch(47.98% 0.209 288.5)
XYZxyz(16.7776, 9.5314, 56.2027)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6038C9 #A1C938
analogous
#3858C9 #6038C9 #A938C9
triadic
#6038C9 #C96038 #38C960
tetradic
#6038C9 #C93858 #A1C938 #38C9A9
square
#6038C9 #C93858 #A1C938 #38C9A9
split-complementary
#6038C9 #C9A938 #58C938
monochromatic
#321D6A #492A9A #6038C9 #8668D6 #AD98E3

Accessibility & contrast

On white

7.23
#6038C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6038C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6038C9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6038C9#FFFFFF#000000##FFFFFF
##6038C91.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#0053C6
Tritanopia (blue-blind)
#385F7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6038c9;
/* rgb */ color: rgb(96, 56, 201);
/* oklch */ color: oklch(48.0% 0.209 288.5);
Tailwind
colors: {
  custom: {
    50: '#9772db',
    500: '#6038c9',
    950: '#000000',
  },
}
SCSS
$custom: #6038c9;
$custom-light: #9772db;
$custom-dark: #000000;
JSON
{
  "hex": "#6038c9",
  "rgb": {
    "r": 96,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 256.552,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47984,
    "c": 0.20935,
    "h": 288.5
  },
  "luminance": 0.09532
}

Semantic roles & 50–950 ramp

primary
#6038C9
secondary
#BDCF8E
accent
#E147B6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6038C9

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

Preview Lab → · Contrast checker → · Palette generator →

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