#6239A4#6239A4

#6239A4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.164 H 296.9°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#6239A4
RGBrgb(98, 57, 164)
HSLhsl(263, 48%, 43%)
HSVhsv(263, 65%, 64%)
CMYKcmyk(40.2%, 65.2%, 0%, 35.7%)
CIE-LABlab(34.40, 41.67, -51.40)
CIE-LCHlch(34.40, 66.17, 309.03°)
OKLaboklab(45.26% 0.0745 -0.1465)
OKLCHoklch(45.26% 0.164 296.9)
XYZxyz(13.1992, 8.2030, 36.0027)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239A4 #7BA439
analogous
#3945A4 #6239A4 #9739A4
triadic
#6239A4 #A46239 #39A462
tetradic
#6239A4 #A43945 #7BA439 #39A497
square
#6239A4 #A43945 #7BA439 #39A497
split-complementary
#6239A4 #A49739 #45A439
monochromatic
#2C1949 #472977 #6239A4 #8056C4 #A283D4

Accessibility & contrast

On white

7.95
#6239A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#6239A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239A4
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239A4#FFFFFF#000000##FFFFFF
##6239A41.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#525169
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6239a4;
/* rgb */ color: rgb(98, 57, 164);
/* oklch */ color: oklch(45.3% 0.164 296.9);
Tailwind
colors: {
  custom: {
    50: '#9472c0',
    500: '#6239a4',
    950: '#000000',
  },
}
SCSS
$custom: #6239a4;
$custom-light: #9472c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6239a4",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 164
  },
  "hsl": {
    "h": 262.991,
    "s": 48.416,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45255,
    "c": 0.16435,
    "h": 296.9
  },
  "luminance": 0.08203
}

Semantic roles & 50–950 ramp

primary
#6239A4
secondary
#A4BE7B
accent
#D850A4
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0812
muted
#7E7B81

Preview Lab

Preview with #6239A4

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

Preview Lab → · Contrast checker → · Palette generator →

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