#6239C2#6239C2

#6239C2 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.200 H 290.5°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#6239C2
RGBrgb(98, 57, 194)
HSLhsl(258, 55%, 49%)
HSVhsv(258, 71%, 76%)
CMYKcmyk(49.5%, 70.6%, 0%, 23.9%)
CIE-LABlab(36.78, 49.94, -65.33)
CIE-LCHlch(36.78, 82.23, 307.40°)
OKLaboklab(47.7% 0.0699 -0.1875)
OKLCHoklch(47.7% 0.2 290.5)
XYZxyz(16.2350, 9.4173, 51.9908)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239C2 #99C239
analogous
#3955C2 #6239C2 #A739C2
triadic
#6239C2 #C26239 #39C262
tetradic
#6239C2 #C23955 #99C239 #39C2A7
square
#6239C2 #C23955 #99C239 #39C2A7
split-complementary
#6239C2 #C2A739 #55C239
monochromatic
#321D63 #4A2B93 #6239C2 #8666D2 #AC95E0

Accessibility & contrast

On white

7.28
#6239C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6239C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239C2
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239C2#FFFFFF#000000##FFFFFF
##6239C21.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#425C79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6239c2;
/* rgb */ color: rgb(98, 57, 194);
/* oklch */ color: oklch(47.7% 0.200 290.5);
Tailwind
colors: {
  custom: {
    50: '#9773d5',
    500: '#6239c2',
    950: '#000000',
  },
}
SCSS
$custom: #6239c2;
$custom-light: #9773d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6239c2",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 194
  },
  "hsl": {
    "h": 257.956,
    "s": 54.582,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47697,
    "c": 0.20008,
    "h": 290.5
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#6239C2
secondary
#B8CB8B
accent
#DE4AB2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6239C2

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

Preview Lab → · Contrast checker → · Palette generator →

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