#6239D6#6239D6

#6239D6 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.5% C 0.223 H 287.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#6239D6
RGBrgb(98, 57, 214)
HSLhsl(256, 66%, 53%)
HSVhsv(256, 73%, 84%)
CMYKcmyk(54.2%, 73.4%, 0%, 16.1%)
CIE-LABlab(38.51, 55.50, -74.09)
CIE-LCHlch(38.51, 92.58, 306.84°)
OKLaboklab(49.46% 0.0656 -0.2132)
OKLCHoklch(49.46% 0.223 287.1)
XYZxyz(18.6341, 10.3770, 64.6264)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239D6 #ADD639
analogous
#395ED6 #6239D6 #B039D6
triadic
#6239D6 #D66239 #39D662
tetradic
#6239D6 #D6395E #ADD639 #39D6B0
square
#6239D6 #D6395E #ADD639 #39D6B0
split-complementary
#6239D6 #D6B039 #5ED639
monochromatic
#33197B #4824AE #6239D6 #8A6CE0 #B29EEB

Accessibility & contrast

On white

6.83
#6239D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6239D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6239D6
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239D6#FFFFFF#000000##FFFFFF
##6239D61.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDB
Deuteranopia (green-blind)
#0056D3
Tritanopia (blue-blind)
#306485
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6239d6;
/* rgb */ color: rgb(98, 57, 214);
/* oklch */ color: oklch(49.5% 0.223 287.1);
Tailwind
colors: {
  custom: {
    50: '#9a74e4',
    500: '#6239d6',
    950: '#000000',
  },
}
SCSS
$custom: #6239d6;
$custom-light: #9a74e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6239d6",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 214
  },
  "hsl": {
    "h": 255.669,
    "s": 65.69,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49458,
    "c": 0.22303,
    "h": 287.1
  },
  "luminance": 0.10378
}

Semantic roles & 50–950 ramp

primary
#6239D6
secondary
#C6D794
accent
#E93FBC
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6239D6

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

Preview Lab → · Contrast checker → · Palette generator →

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