#6239D4#6239D4

#6239D4 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.221 H 287.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#6239D4
RGBrgb(98, 57, 212)
HSLhsl(256, 64%, 53%)
HSVhsv(256, 73%, 83%)
CMYKcmyk(53.8%, 73.1%, 0%, 16.9%)
CIE-LABlab(38.33, 54.95, -73.24)
CIE-LCHlch(38.33, 91.56, 306.88°)
OKLaboklab(49.28% 0.0661 -0.2106)
OKLCHoklch(49.28% 0.221 287.4)
XYZxyz(18.3803, 10.2754, 63.2894)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239D4 #ABD439
analogous
#395DD4 #6239D4 #AF39D4
triadic
#6239D4 #D46239 #39D462
tetradic
#6239D4 #D4395D #ABD439 #39D4AF
square
#6239D4 #D4395D #ABD439 #39D4AF
split-complementary
#6239D4 #D4AF39 #5DD439
monochromatic
#331A78 #4825AB #6239D4 #8A6BDF #B29EEA

Accessibility & contrast

On white

6.87
#6239D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6239D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6239D4
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239D4#FFFFFF#000000##FFFFFF
##6239D41.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#336384
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6239d4;
/* rgb */ color: rgb(98, 57, 212);
/* oklch */ color: oklch(49.3% 0.221 287.4);
Tailwind
colors: {
  custom: {
    50: '#9a74e2',
    500: '#6239d4',
    950: '#000000',
  },
}
SCSS
$custom: #6239d4;
$custom-light: #9a74e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6239d4",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 212
  },
  "hsl": {
    "h": 255.871,
    "s": 64.315,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49278,
    "c": 0.22076,
    "h": 287.4
  },
  "luminance": 0.10276
}

Semantic roles & 50–950 ramp

primary
#6239D4
secondary
#C4D693
accent
#E740BB
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6239D4

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

Preview Lab → · Contrast checker → · Palette generator →

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