#6A237D#6A237D

#6A237D is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.6% C 0.154 H 318.3°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#6A237D
RGBrgb(106, 35, 125)
HSLhsl(287, 56%, 31%)
HSVhsv(287, 72%, 49%)
CMYKcmyk(15.2%, 72%, 0%, 51%)
CIE-LABlab(28.77, 45.01, -36.45)
CIE-LCHlch(28.77, 57.91, 321.00°)
OKLaboklab(40.56% 0.1148 -0.1022)
OKLCHoklch(40.56% 0.154 318.3)
XYZxyz(10.2461, 5.7474, 19.9677)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A237D #367D23
analogous
#3D237D #6A237D #7D2363
triadic
#6A237D #7D6A23 #237D6A
tetradic
#6A237D #7D3D23 #367D23 #23637D
square
#6A237D #7D3D23 #367D23 #23637D
split-complementary
#6A237D #637D23 #237D3D
monochromatic
#19081D #41164D #6A237D #9330AD #B24DCD

Accessibility & contrast

On white

9.77
#6A237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A237D
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A237D#FFFFFF#000000##FFFFFF
##6A237D1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#27467B
Tritanopia (blue-blind)
#6A344D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a237d;
/* rgb */ color: rgb(106, 35, 125);
/* oklch */ color: oklch(40.6% 0.154 318.3);
Tailwind
colors: {
  custom: {
    50: '#9865a3',
    500: '#6a237d',
    950: '#000000',
  },
}
SCSS
$custom: #6a237d;
$custom-light: #9865a3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a237d",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 287.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40561,
    "c": 0.15371,
    "h": 318.3
  },
  "luminance": 0.05747
}

Semantic roles & 50–950 ramp

primary
#6A237D
secondary
#61AF4C
accent
#E04868
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A237D

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

Preview Lab → · Contrast checker → · Palette generator →

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