#6239DC#6239DC

#6239DC is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.0% C 0.230 H 286.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#6239DC
RGBrgb(98, 57, 220)
HSLhsl(255, 70%, 54%)
HSVhsv(255, 74%, 86%)
CMYKcmyk(55.5%, 74.1%, 0%, 13.7%)
CIE-LABlab(39.05, 57.17, -76.65)
CIE-LCHlch(39.05, 95.63, 306.72°)
OKLaboklab(50% 0.0642 -0.2206)
OKLCHoklch(50% 0.23 286.2)
XYZxyz(19.4145, 10.6891, 68.7365)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239DC #B3DC39
analogous
#3962DC #6239DC #B439DC
triadic
#6239DC #DC6239 #39DC62
tetradic
#6239DC #DC3962 #B3DC39 #39DCB4
square
#6239DC #DC3962 #B3DC39 #39DCB4
split-complementary
#6239DC #DCB439 #62DC39
monochromatic
#321783 #4620B7 #6239DC #8B6DE5 #B4A1EE

Accessibility & contrast

On white

6.69
#6239DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6239DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6239DC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239DC#FFFFFF#000000##FFFFFF
##6239DC1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E1
Deuteranopia (green-blind)
#0057D9
Tritanopia (blue-blind)
#296688
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6239dc;
/* rgb */ color: rgb(98, 57, 220);
/* oklch */ color: oklch(50.0% 0.230 286.2);
Tailwind
colors: {
  custom: {
    50: '#9b74e8',
    500: '#6239dc',
    950: '#000000',
  },
}
SCSS
$custom: #6239dc;
$custom-light: #9b74e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6239dc",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 220
  },
  "hsl": {
    "h": 255.092,
    "s": 69.957,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50004,
    "c": 0.22978,
    "h": 286.2
  },
  "luminance": 0.1069
}

Semantic roles & 50–950 ramp

primary
#6239DC
secondary
#CADB96
accent
#ED3BC0
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6239DC

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

Preview Lab → · Contrast checker → · Palette generator →

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