#6239D2#6239D2

#6239D2 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.218 H 287.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6239D2
RGBrgb(98, 57, 210)
HSLhsl(256, 63%, 52%)
HSVhsv(256, 73%, 82%)
CMYKcmyk(53.3%, 72.9%, 0%, 17.6%)
CIE-LABlab(38.16, 54.39, -72.37)
CIE-LCHlch(38.16, 90.53, 306.93°)
OKLaboklab(49.1% 0.0665 -0.2081)
OKLCHoklch(49.1% 0.218 287.7)
XYZxyz(18.1296, 10.1752, 61.9690)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239D2 #A9D239
analogous
#395DD2 #6239D2 #AE39D2
triadic
#6239D2 #D26239 #39D262
tetradic
#6239D2 #D2395D #A9D239 #39D2AE
square
#6239D2 #D2395D #A9D239 #39D2AE
split-complementary
#6239D2 #D2AE39 #5DD239
monochromatic
#331B76 #4926A8 #6239D2 #8A6BDD #B19DE9

Accessibility & contrast

On white

6.92
#6239D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6239D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6239D2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239D2#FFFFFF#000000##FFFFFF
##6239D21.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#356382
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6239d2;
/* rgb */ color: rgb(98, 57, 210);
/* oklch */ color: oklch(49.1% 0.218 287.7);
Tailwind
colors: {
  custom: {
    50: '#9a73e1',
    500: '#6239d2',
    950: '#000000',
  },
}
SCSS
$custom: #6239d2;
$custom-light: #9a73e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6239d2",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 256.078,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49098,
    "c": 0.21849,
    "h": 287.7
  },
  "luminance": 0.10176
}

Semantic roles & 50–950 ramp

primary
#6239D2
secondary
#C3D592
accent
#E642BA
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6239D2

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

Preview Lab → · Contrast checker → · Palette generator →

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