#6B237B#6B237B

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

Color values

HEX#6B237B
RGBrgb(107, 35, 123)
HSLhsl(289, 56%, 31%)
HSVhsv(289, 72%, 48%)
CMYKcmyk(13%, 71.5%, 0%, 51.8%)
CIE-LABlab(28.79, 44.83, -35.13)
CIE-LCHlch(28.79, 56.95, 321.92°)
OKLaboklab(40.57% 0.1162 -0.0983)
OKLCHoklch(40.57% 0.152 319.8)
XYZxyz(10.2391, 5.7584, 19.3072)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B237B #337B23
analogous
#3F237B #6B237B #7B235F
triadic
#6B237B #7B6B23 #237B6B
tetradic
#6B237B #7B3F23 #337B23 #235F7B
square
#6B237B #7B3F23 #337B23 #235F7B
split-complementary
#6B237B #5F7B23 #237B3F
monochromatic
#18081C #42154B #6B237B #9431AB #B54CCC

Accessibility & contrast

On white

9.76
#6B237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B237B
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B237B#FFFFFF#000000##FFFFFF
##6B237B1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#2A4679
Tritanopia (blue-blind)
#6B334C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b237b;
/* rgb */ color: rgb(107, 35, 123);
/* oklch */ color: oklch(40.6% 0.152 319.8);
Tailwind
colors: {
  custom: {
    50: '#9865a2',
    500: '#6b237b',
    950: '#000000',
  },
}
SCSS
$custom: #6b237b;
$custom-light: #9865a2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b237b",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 289.091,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40571,
    "c": 0.15224,
    "h": 319.8
  },
  "luminance": 0.05758
}

Semantic roles & 50–950 ramp

primary
#6B237B
secondary
#5EAE4C
accent
#DF4964
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B237B

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

Preview Lab → · Contrast checker → · Palette generator →

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