#6B237F#6B237F

#6B237F is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.8% C 0.156 H 318.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#6B237F
RGBrgb(107, 35, 127)
HSLhsl(287, 57%, 32%)
HSVhsv(287, 72%, 50%)
CMYKcmyk(15.7%, 72.4%, 0%, 50.2%)
CIE-LABlab(29.06, 45.66, -37.23)
CIE-LCHlch(29.06, 58.91, 320.81°)
OKLaboklab(40.84% 0.116 -0.1045)
OKLCHoklch(40.84% 0.156 318)
XYZxyz(10.4947, 5.8606, 20.6530)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B237F #377F23
analogous
#3D237F #6B237F #7F2365
triadic
#6B237F #7F6B23 #237F6B
tetradic
#6B237F #7F3D23 #377F23 #23657F
square
#6B237F #7F3D23 #377F23 #23657F
split-complementary
#6B237F #657F23 #237F3D
monochromatic
#1A091F #43164F #6B237F #9330AF #B24ECE

Accessibility & contrast

On white

9.67
#6B237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#6B237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B237F
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B237F#FFFFFF#000000##FFFFFF
##6B237F1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#27477D
Tritanopia (blue-blind)
#6A354E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #6b237f;
/* rgb */ color: rgb(107, 35, 127);
/* oklch */ color: oklch(40.8% 0.156 318.0);
Tailwind
colors: {
  custom: {
    50: '#9865a5',
    500: '#6b237f',
    950: '#000000',
  },
}
SCSS
$custom: #6b237f;
$custom-light: #9865a5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b237f",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 286.957,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40844,
    "c": 0.15609,
    "h": 318
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#6B237F
secondary
#62B14C
accent
#E04869
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #6B237F

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

Preview Lab → · Contrast checker → · Palette generator →

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