#6D238B#6D238B

#6D238B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.169 H 314.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#6D238B
RGBrgb(109, 35, 139)
HSLhsl(283, 60%, 34%)
HSVhsv(283, 75%, 55%)
CMYKcmyk(21.6%, 74.8%, 0%, 45.5%)
CIE-LABlab(30.20, 48.64, -42.86)
CIE-LCHlch(30.20, 64.83, 318.61°)
OKLaboklab(41.99% 0.1173 -0.1209)
OKLCHoklch(41.99% 0.169 314.1)
XYZxyz(11.5671, 6.3177, 25.0312)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D238B #418B23
analogous
#39238B #6D238B #8B2375
triadic
#6D238B #8B6D23 #238B6D
tetradic
#6D238B #8B3923 #418B23 #23758B
square
#6D238B #8B3923 #418B23 #23758B
split-complementary
#6D238B #758B23 #238B39
monochromatic
#200A29 #47175A #6D238B #932FBC #AF54D4

Accessibility & contrast

On white

9.28
#6D238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D238B
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D238B#FFFFFF#000000##FFFFFF
##6D238B1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#1C4989
Tritanopia (blue-blind)
#6A3A55
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6d238b;
/* rgb */ color: rgb(109, 35, 139);
/* oklch */ color: oklch(42.0% 0.169 314.1);
Tailwind
colors: {
  custom: {
    50: '#9b66ad',
    500: '#6d238b',
    950: '#000000',
  },
}
SCSS
$custom: #6d238b;
$custom-light: #9b66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6d238b",
  "rgb": {
    "r": 109,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 282.692,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41986,
    "c": 0.1685,
    "h": 314.1
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#6D238B
secondary
#6FB852
accent
#E34572
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6D238B

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

Preview Lab → · Contrast checker → · Palette generator →

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