#6239AA#6239AA

#6239AA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.7% C 0.172 H 295.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#6239AA
RGBrgb(98, 57, 170)
HSLhsl(262, 50%, 45%)
HSVhsv(262, 66%, 67%)
CMYKcmyk(42.4%, 66.5%, 0%, 33.3%)
CIE-LABlab(34.85, 43.31, -54.27)
CIE-LCHlch(34.85, 69.43, 308.59°)
OKLaboklab(45.72% 0.0738 -0.1549)
OKLCHoklch(45.72% 0.172 295.5)
XYZxyz(13.7539, 8.4249, 38.9239)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6239AA #81AA39
analogous
#3948AA #6239AA #9B39AA
triadic
#6239AA #AA6239 #39AA62
tetradic
#6239AA #AA3948 #81AA39 #39AA9B
square
#6239AA #AA3948 #81AA39 #39AA9B
split-complementary
#6239AA #AA9B39 #48AA39
monochromatic
#2D1A4E #482A7C #6239AA #8159C7 #A487D7

Accessibility & contrast

On white

7.82
#6239AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6239AA#FFFFFF#000000##FFFFFF
##6239AA1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#4F546C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6239aa;
/* rgb */ color: rgb(98, 57, 170);
/* oklch */ color: oklch(45.7% 0.172 295.5);
Tailwind
colors: {
  custom: {
    50: '#9472c4',
    500: '#6239aa',
    950: '#000000',
  },
}
SCSS
$custom: #6239aa;
$custom-light: #9472c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6239aa",
  "rgb": {
    "r": 98,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 261.77,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45721,
    "c": 0.17162,
    "h": 295.5
  },
  "luminance": 0.08425
}

Semantic roles & 50–950 ramp

primary
#6239AA
secondary
#A9C17E
accent
#D94EA7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6239AA

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

Preview Lab → · Contrast checker → · Palette generator →

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