#6B237A#6B237A

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

Color values

HEX#6B237A
RGBrgb(107, 35, 122)
HSLhsl(290, 55%, 31%)
HSVhsv(290, 71%, 48%)
CMYKcmyk(12.3%, 71.3%, 0%, 52.2%)
CIE-LABlab(28.73, 44.63, -34.60)
CIE-LCHlch(28.73, 56.47, 322.21°)
OKLaboklab(40.5% 0.1163 -0.0968)
OKLCHoklch(40.5% 0.151 320.2)
XYZxyz(10.1769, 5.7335, 18.9792)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B237A #327A23
analogous
#3F237A #6B237A #7A235D
triadic
#6B237A #7A6B23 #237A6B
tetradic
#6B237A #7A3F23 #327A23 #235D7A
square
#6B237A #7A3F23 #327A23 #235D7A
split-complementary
#6B237A #5D7A23 #237A3F
monochromatic
#18081B #41154A #6B237A #9531AA #B64CCC

Accessibility & contrast

On white

9.78
#6B237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B237A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B237A#FFFFFF#000000##FFFFFF
##6B237A1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#2B4678
Tritanopia (blue-blind)
#6C334C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b237a;
/* rgb */ color: rgb(107, 35, 122);
/* oklch */ color: oklch(40.5% 0.151 320.2);
Tailwind
colors: {
  custom: {
    50: '#9865a1',
    500: '#6b237a',
    950: '#000000',
  },
}
SCSS
$custom: #6b237a;
$custom-light: #9865a1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b237a",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 289.655,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.15127,
    "h": 320.2
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#6B237A
secondary
#5DAD4C
accent
#DF4963
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0E060F
muted
#7E7A7E

Preview Lab

Preview with #6B237A

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

Preview Lab → · Contrast checker → · Palette generator →

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