#6A237E#6A237E

#6A237E is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.6% C 0.155 H 317.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#6A237E
RGBrgb(106, 35, 126)
HSLhsl(287, 57%, 32%)
HSVhsv(287, 72%, 49%)
CMYKcmyk(15.9%, 72.2%, 0%, 50.6%)
CIE-LABlab(28.83, 45.22, -36.97)
CIE-LCHlch(28.83, 58.41, 320.73°)
OKLaboklab(40.63% 0.1147 -0.1037)
OKLCHoklch(40.63% 0.155 317.9)
XYZxyz(10.3103, 5.7730, 20.3058)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A237E #377E23
analogous
#3D237E #6A237E #7E2365
triadic
#6A237E #7E6A23 #237E6A
tetradic
#6A237E #7E3D23 #377E23 #23657E
square
#6A237E #7E3D23 #377E23 #23657E
split-complementary
#6A237E #657E23 #237E3D
monochromatic
#19081E #42164E #6A237E #9230AE #B24ECE

Accessibility & contrast

On white

9.75
#6A237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#6A237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A237E
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A237E#FFFFFF#000000##FFFFFF
##6A237E1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#27467C
Tritanopia (blue-blind)
#69354E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a237e;
/* rgb */ color: rgb(106, 35, 126);
/* oklch */ color: oklch(40.6% 0.155 317.9);
Tailwind
colors: {
  custom: {
    50: '#9865a4',
    500: '#6a237e',
    950: '#000000',
  },
}
SCSS
$custom: #6a237e;
$custom-light: #9865a4;
$custom-dark: #000000;
JSON
{
  "hex": "#6a237e",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 286.813,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40629,
    "c": 0.15468,
    "h": 317.9
  },
  "luminance": 0.05773
}

Semantic roles & 50–950 ramp

primary
#6A237E
secondary
#62B04C
accent
#E04869
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A237E

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

Preview Lab → · Contrast checker → · Palette generator →

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