#6239CD#6239CD

#6239CD is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.213 H 288.5°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6239CD
RGBrgb(98, 57, 205)
HSLhsl(257, 60%, 51%)
HSVhsv(257, 72%, 80%)
CMYKcmyk(52.2%, 72.2%, 0%, 19.6%)
CIE-LABlab(37.72, 53.00, -70.20)
CIE-LCHlch(37.72, 87.96, 307.05°)
OKLaboklab(48.65% 0.0677 -0.2017)
OKLCHoklch(48.65% 0.213 288.5)
XYZxyz(17.5164, 9.9299, 58.7395)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239CD #A4CD39
analogous
#395ACD #6239CD #AC39CD
triadic
#6239CD #CD6239 #39CD62
tetradic
#6239CD #CD395A #A4CD39 #39CDAC
square
#6239CD #CD395A #A4CD39 #39CDAC
split-complementary
#6239CD #CDAC39 #5ACD39
monochromatic
#331C6F #4A28A0 #6239CD #896AD9 #AF9BE6

Accessibility & contrast

On white

7.03
#6239CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6239CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239CD
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239CD#FFFFFF#000000##FFFFFF
##6239CD1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#396180
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6239cd;
/* rgb */ color: rgb(98, 57, 205);
/* oklch */ color: oklch(48.7% 0.213 288.5);
Tailwind
colors: {
  custom: {
    50: '#9973dd',
    500: '#6239cd',
    950: '#000000',
  },
}
SCSS
$custom: #6239cd;
$custom-light: #9973dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6239cd",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 205
  },
  "hsl": {
    "h": 256.622,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48654,
    "c": 0.21278,
    "h": 288.5
  },
  "luminance": 0.09931
}

Semantic roles & 50–950 ramp

primary
#6239CD
secondary
#BFD290
accent
#E345B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6239CD

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

Preview Lab → · Contrast checker → · Palette generator →

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