#6B238E#6B238E

#6B238E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.171 H 312.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#6B238E
RGBrgb(107, 35, 142)
HSLhsl(280, 60%, 35%)
HSVhsv(280, 75%, 56%)
CMYKcmyk(24.6%, 75.4%, 0%, 44.3%)
CIE-LABlab(30.11, 48.87, -44.88)
CIE-LCHlch(30.11, 66.35, 317.44°)
OKLaboklab(41.93% 0.1142 -0.1269)
OKLCHoklch(41.93% 0.171 312)
XYZxyz(11.5460, 6.2812, 26.1901)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B238E #468E23
analogous
#36238E #6B238E #8E237C
triadic
#6B238E #8E6B23 #238E6B
tetradic
#6B238E #8E3623 #468E23 #237C8E
square
#6B238E #8E3623 #468E23 #237C8E
split-complementary
#6B238E #7C8E23 #238E36
monochromatic
#210B2C #46175D #6B238E #902FBF #AC56D5

Accessibility & contrast

On white

9.31
#6B238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6B238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B238E
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B238E#FFFFFF#000000##FFFFFF
##6B238E1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#14488C
Tritanopia (blue-blind)
#673B57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b238e;
/* rgb */ color: rgb(107, 35, 142);
/* oklch */ color: oklch(41.9% 0.171 312.0);
Tailwind
colors: {
  custom: {
    50: '#9966b0',
    500: '#6b238e',
    950: '#000000',
  },
}
SCSS
$custom: #6b238e;
$custom-light: #9966b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b238e",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 280.374,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41928,
    "c": 0.17073,
    "h": 312
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#6B238E
secondary
#75B953
accent
#E44478
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B238E

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

Preview Lab → · Contrast checker → · Palette generator →

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