#6239CC#6239CC

#6239CC is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.212 H 288.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#6239CC
RGBrgb(98, 57, 204)
HSLhsl(257, 59%, 51%)
HSVhsv(257, 72%, 80%)
CMYKcmyk(52%, 72.1%, 0%, 20%)
CIE-LABlab(37.63, 52.72, -69.76)
CIE-LCHlch(37.63, 87.44, 307.08°)
OKLaboklab(48.57% 0.0679 -0.2004)
OKLCHoklch(48.57% 0.212 288.7)
XYZxyz(17.3960, 9.8817, 58.1058)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239CC #A3CC39
analogous
#3959CC #6239CC #AB39CC
triadic
#6239CC #CC6239 #39CC62
tetradic
#6239CC #CC3959 #A3CC39 #39CCAB
square
#6239CC #CC3959 #A3CC39 #39CCAB
split-complementary
#6239CC #CCAB39 #59CC39
monochromatic
#331C6E #4A299F #6239CC #896AD9 #AF9AE5

Accessibility & contrast

On white

7.06
#6239CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6239CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239CC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239CC#FFFFFF#000000##FFFFFF
##6239CC1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#3A607F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6239cc;
/* rgb */ color: rgb(98, 57, 204);
/* oklch */ color: oklch(48.6% 0.212 288.7);
Tailwind
colors: {
  custom: {
    50: '#9973dd',
    500: '#6239cc',
    950: '#000000',
  },
}
SCSS
$custom: #6239cc;
$custom-light: #9973dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6239cc",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 204
  },
  "hsl": {
    "h": 256.735,
    "s": 59.036,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48566,
    "c": 0.21163,
    "h": 288.7
  },
  "luminance": 0.09883
}

Semantic roles & 50–950 ramp

primary
#6239CC
secondary
#BFD190
accent
#E246B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6239CC

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

Preview Lab → · Contrast checker → · Palette generator →

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