#6239AB#6239AB

#6239AB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.173 H 295.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#6239AB
RGBrgb(98, 57, 171)
HSLhsl(262, 50%, 45%)
HSVhsv(262, 67%, 67%)
CMYKcmyk(42.7%, 66.7%, 0%, 32.9%)
CIE-LABlab(34.93, 43.58, -54.74)
CIE-LCHlch(34.93, 69.97, 308.53°)
OKLaboklab(45.8% 0.0737 -0.1563)
OKLCHoklch(45.8% 0.173 295.2)
XYZxyz(13.8489, 8.4629, 39.4240)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239AB #82AB39
analogous
#3949AB #6239AB #9B39AB
triadic
#6239AB #AB6239 #39AB62
tetradic
#6239AB #AB3949 #82AB39 #39AB9B
square
#6239AB #AB3949 #82AB39 #39AB9B
split-complementary
#6239AB #AB9B39 #49AB39
monochromatic
#2D1A4F #482A7D #6239AB #8159C8 #A487D7

Accessibility & contrast

On white

7.80
#6239AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6239AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6239AB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6239AB#FFFFFF#000000##FFFFFF
##6239AB1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#4F546D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6239ab;
/* rgb */ color: rgb(98, 57, 171);
/* oklch */ color: oklch(45.8% 0.173 295.2);
Tailwind
colors: {
  custom: {
    50: '#9572c5',
    500: '#6239ab',
    950: '#000000',
  },
}
SCSS
$custom: #6239ab;
$custom-light: #9572c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6239ab",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 261.579,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.458,
    "c": 0.17283,
    "h": 295.2
  },
  "luminance": 0.08463
}

Semantic roles & 50–950 ramp

primary
#6239AB
secondary
#A9C17F
accent
#DA4EA7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6239AB

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

Preview Lab → · Contrast checker → · Palette generator →

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