#6239C5#6239C5

#6239C5 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.204 H 289.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6239C5
RGBrgb(98, 57, 197)
HSLhsl(258, 55%, 50%)
HSVhsv(258, 71%, 77%)
CMYKcmyk(50.3%, 71.1%, 0%, 22.7%)
CIE-LABlab(37.03, 50.78, -66.67)
CIE-LCHlch(37.03, 83.80, 307.29°)
OKLaboklab(47.96% 0.0693 -0.1914)
OKLCHoklch(47.96% 0.204 289.9)
XYZxyz(16.5753, 9.5534, 53.7831)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239C5 #9CC539
analogous
#3956C5 #6239C5 #A839C5
triadic
#6239C5 #C56239 #39C562
tetradic
#6239C5 #C53956 #9CC539 #39C5A8
square
#6239C5 #C53956 #9CC539 #39C5A8
split-complementary
#6239C5 #C5A839 #56C539
monochromatic
#331E66 #4A2B96 #6239C5 #8768D3 #AD97E1

Accessibility & contrast

On white

7.21
#6239C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6239C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239C5
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239C5#FFFFFF#000000##FFFFFF
##6239C51.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#3F5E7B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6239c5;
/* rgb */ color: rgb(98, 57, 197);
/* oklch */ color: oklch(48.0% 0.204 289.9);
Tailwind
colors: {
  custom: {
    50: '#9873d8',
    500: '#6239c5',
    950: '#000000',
  },
}
SCSS
$custom: #6239c5;
$custom-light: #9873d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6239c5",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 257.571,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47955,
    "c": 0.20356,
    "h": 289.9
  },
  "luminance": 0.09554
}

Semantic roles & 50–950 ramp

primary
#6239C5
secondary
#BACD8D
accent
#DE49B3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #6239C5

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

Preview Lab → · Contrast checker → · Palette generator →

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