#6A237B#6A237B

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

Color values

HEX#6A237B
RGBrgb(106, 35, 123)
HSLhsl(288, 56%, 31%)
HSVhsv(288, 72%, 48%)
CMYKcmyk(13.8%, 71.5%, 0%, 51.8%)
CIE-LABlab(28.63, 44.59, -35.39)
CIE-LCHlch(28.63, 56.93, 321.56°)
OKLaboklab(40.42% 0.1149 -0.0991)
OKLCHoklch(40.42% 0.152 319.2)
XYZxyz(10.1196, 5.6968, 19.3016)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A237B #347B23
analogous
#3E237B #6A237B #7B2360
triadic
#6A237B #7B6A23 #237B6A
tetradic
#6A237B #7B3E23 #347B23 #23607B
square
#6A237B #7B3E23 #347B23 #23607B
split-complementary
#6A237B #607B23 #237B3E
monochromatic
#18081C #41154B #6A237B #9331AB #B34CCC

Accessibility & contrast

On white

9.82
#6A237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A237B
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A237B#FFFFFF#000000##FFFFFF
##6A237B1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#294679
Tritanopia (blue-blind)
#6A334C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6a237b;
/* rgb */ color: rgb(106, 35, 123);
/* oklch */ color: oklch(40.4% 0.152 319.2);
Tailwind
colors: {
  custom: {
    50: '#9865a2',
    500: '#6a237b',
    950: '#000000',
  },
}
SCSS
$custom: #6a237b;
$custom-light: #9865a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6a237b",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 288.409,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40424,
    "c": 0.15178,
    "h": 319.2
  },
  "luminance": 0.05696
}

Semantic roles & 50–950 ramp

primary
#6A237B
secondary
#5FAE4C
accent
#DF4966
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6A237B

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

Preview Lab → · Contrast checker → · Palette generator →

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