#6D238E#6D238E

#6D238E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.171 H 313.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#6D238E
RGBrgb(109, 35, 142)
HSLhsl(281, 60%, 35%)
HSVhsv(281, 75%, 56%)
CMYKcmyk(23.2%, 75.4%, 0%, 44.3%)
CIE-LABlab(30.42, 49.29, -44.37)
CIE-LCHlch(30.42, 66.32, 318.00°)
OKLaboklab(42.21% 0.1169 -0.1254)
OKLCHoklch(42.21% 0.171 313)
XYZxyz(11.7893, 6.4066, 26.2015)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D238E #448E23
analogous
#37238E #6D238E #8E237A
triadic
#6D238E #8E6D23 #238E6D
tetradic
#6D238E #8E3723 #448E23 #237A8E
square
#6D238E #8E3723 #448E23 #237A8E
split-complementary
#6D238E #7A8E23 #238E37
monochromatic
#220B2C #47175D #6D238E #932FBF #AE56D5

Accessibility & contrast

On white

9.21
#6D238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#6D238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D238E
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D238E#FFFFFF#000000##FFFFFF
##6D238E1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#18498C
Tritanopia (blue-blind)
#693B57
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6d238e;
/* rgb */ color: rgb(109, 35, 142);
/* oklch */ color: oklch(42.2% 0.171 313.0);
Tailwind
colors: {
  custom: {
    50: '#9b66b0',
    500: '#6d238e',
    950: '#000000',
  },
}
SCSS
$custom: #6d238e;
$custom-light: #9b66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d238e",
  "rgb": {
    "r": 109,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 281.495,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42207,
    "c": 0.17142,
    "h": 313
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#6D238E
secondary
#73B953
accent
#E44475
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6D238E

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

Preview Lab → · Contrast checker → · Palette generator →

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