#6A237C#6A237C

#6A237C is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.5% C 0.153 H 318.8°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#6A237C
RGBrgb(106, 35, 124)
HSLhsl(288, 56%, 31%)
HSVhsv(288, 72%, 49%)
CMYKcmyk(14.5%, 71.8%, 0%, 51.4%)
CIE-LABlab(28.70, 44.80, -35.92)
CIE-LCHlch(28.70, 57.42, 321.28°)
OKLaboklab(40.49% 0.1149 -0.1007)
OKLCHoklch(40.49% 0.153 318.8)
XYZxyz(10.1825, 5.7219, 19.6330)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A237C #357C23
analogous
#3D237C #6A237C #7C2361
triadic
#6A237C #7C6A23 #237C6A
tetradic
#6A237C #7C3D23 #357C23 #23617C
square
#6A237C #7C3D23 #357C23 #23617C
split-complementary
#6A237C #617C23 #237C3D
monochromatic
#18081D #41164C #6A237C #9330AC #B34DCD

Accessibility & contrast

On white

9.79
#6A237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#6A237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A237C
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A237C#FFFFFF#000000##FFFFFF
##6A237C1.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#28467A
Tritanopia (blue-blind)
#6A344D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6a237c;
/* rgb */ color: rgb(106, 35, 124);
/* oklch */ color: oklch(40.5% 0.153 318.8);
Tailwind
colors: {
  custom: {
    50: '#9865a2',
    500: '#6a237c',
    950: '#000000',
  },
}
SCSS
$custom: #6a237c;
$custom-light: #9865a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a237c",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 287.865,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40492,
    "c": 0.15275,
    "h": 318.8
  },
  "luminance": 0.05721
}

Semantic roles & 50–950 ramp

primary
#6A237C
secondary
#60AF4C
accent
#DF4967
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A237C

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

Preview Lab → · Contrast checker → · Palette generator →

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