#6239BA#6239BA

#6239BA is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.191 H 292.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#6239BA
RGBrgb(98, 57, 186)
HSLhsl(259, 53%, 48%)
HSVhsv(259, 69%, 73%)
CMYKcmyk(47.3%, 69.4%, 0%, 27.1%)
CIE-LABlab(36.11, 47.72, -61.71)
CIE-LCHlch(36.11, 78.01, 307.71°)
OKLaboklab(47.02% 0.0714 -0.1768)
OKLCHoklch(47.02% 0.191 292)
XYZxyz(15.3606, 9.0676, 47.3857)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239BA #91BA39
analogous
#3950BA #6239BA #A239BA
triadic
#6239BA #BA6239 #39BA62
tetradic
#6239BA #BA3950 #91BA39 #39BAA2
square
#6239BA #BA3950 #91BA39 #39BAA2
split-complementary
#6239BA #BAA239 #50BA39
monochromatic
#311C5C #492B8B #6239BA #8461CF #A990DD

Accessibility & contrast

On white

7.46
#6239BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6239BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239BA
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239BA#FFFFFF#000000##FFFFFF
##6239BA1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#475975
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6239ba;
/* rgb */ color: rgb(98, 57, 186);
/* oklch */ color: oklch(47.0% 0.191 292.0);
Tailwind
colors: {
  custom: {
    50: '#9673d0',
    500: '#6239ba',
    950: '#000000',
  },
}
SCSS
$custom: #6239ba;
$custom-light: #9673d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6239ba",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 259.07,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4702,
    "c": 0.1907,
    "h": 292
  },
  "luminance": 0.09068
}

Semantic roles & 50–950 ramp

primary
#6239BA
secondary
#B3C887
accent
#DC4BAE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6239BA

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

Preview Lab → · Contrast checker → · Palette generator →

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