#6239D5#6239D5

#6239D5 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.4% C 0.222 H 287.3°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#6239D5
RGBrgb(98, 57, 213)
HSLhsl(256, 65%, 53%)
HSVhsv(256, 73%, 84%)
CMYKcmyk(54%, 73.2%, 0%, 16.5%)
CIE-LABlab(38.42, 55.23, -73.67)
CIE-LCHlch(38.42, 92.07, 306.86°)
OKLaboklab(49.37% 0.0658 -0.2119)
OKLCHoklch(49.37% 0.222 287.3)
XYZxyz(18.5068, 10.3261, 63.9558)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239D5 #ACD539
analogous
#395ED5 #6239D5 #B039D5
triadic
#6239D5 #D56239 #39D562
tetradic
#6239D5 #D5395E #ACD539 #39D5B0
square
#6239D5 #D5395E #ACD539 #39D5B0
split-complementary
#6239D5 #D5B039 #5ED539
monochromatic
#331A7A #4825AC #6239D5 #8A6BE0 #B29EEA

Accessibility & contrast

On white

6.85
#6239D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6239D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6239D5
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239D5#FFFFFF#000000##FFFFFF
##6239D51.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDA
Deuteranopia (green-blind)
#0056D2
Tritanopia (blue-blind)
#316484
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6239d5;
/* rgb */ color: rgb(98, 57, 213);
/* oklch */ color: oklch(49.4% 0.222 287.3);
Tailwind
colors: {
  custom: {
    50: '#9a74e3',
    500: '#6239d5',
    950: '#000000',
  },
}
SCSS
$custom: #6239d5;
$custom-light: #9a74e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6239d5",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 213
  },
  "hsl": {
    "h": 255.769,
    "s": 65,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49368,
    "c": 0.22189,
    "h": 287.3
  },
  "luminance": 0.10327
}

Semantic roles & 50–950 ramp

primary
#6239D5
secondary
#C5D793
accent
#E840BC
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6239D5

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

Preview Lab → · Contrast checker → · Palette generator →

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