#6A237A#6A237A

#6A237A is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.4% C 0.151 H 319.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#6A237A
RGBrgb(106, 35, 122)
HSLhsl(289, 55%, 31%)
HSVhsv(289, 71%, 48%)
CMYKcmyk(13.1%, 71.3%, 0%, 52.2%)
CIE-LABlab(28.57, 44.38, -34.87)
CIE-LCHlch(28.57, 56.44, 321.85°)
OKLaboklab(40.36% 0.115 -0.0976)
OKLCHoklch(40.36% 0.151 319.7)
XYZxyz(10.0573, 5.6719, 18.9736)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A237A #337A23
analogous
#3F237A #6A237A #7A235E
triadic
#6A237A #7A6A23 #237A6A
tetradic
#6A237A #7A3F23 #337A23 #235E7A
square
#6A237A #7A3F23 #337A23 #235E7A
split-complementary
#6A237A #5E7A23 #237A3F
monochromatic
#17081B #41154A #6A237A #9331AA #B44CCC

Accessibility & contrast

On white

9.84
#6A237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#6A237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A237A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A237A#FFFFFF#000000##FFFFFF
##6A237A1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#2A4678
Tritanopia (blue-blind)
#6A334C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a237a;
/* rgb */ color: rgb(106, 35, 122);
/* oklch */ color: oklch(40.4% 0.151 319.7);
Tailwind
colors: {
  custom: {
    50: '#9865a1',
    500: '#6a237a',
    950: '#000000',
  },
}
SCSS
$custom: #6a237a;
$custom-light: #9865a1;
$custom-dark: #000000;
JSON
{
  "hex": "#6a237a",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 288.966,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40356,
    "c": 0.15082,
    "h": 319.7
  },
  "luminance": 0.05671
}

Semantic roles & 50–950 ramp

primary
#6A237A
secondary
#5EAD4C
accent
#DF4965
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060F
muted
#7E7A7E

Preview Lab

Preview with #6A237A

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

Preview Lab → · Contrast checker → · Palette generator →

#6A237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva