#6D238F#6D238F

#6D238F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.172 H 312.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#6D238F
RGBrgb(109, 35, 143)
HSLhsl(281, 61%, 35%)
HSVhsv(281, 76%, 56%)
CMYKcmyk(23.8%, 75.5%, 0%, 43.9%)
CIE-LABlab(30.49, 49.50, -44.87)
CIE-LCHlch(30.49, 66.81, 317.81°)
OKLaboklab(42.28% 0.1167 -0.1268)
OKLCHoklch(42.28% 0.172 312.6)
XYZxyz(11.8647, 6.4368, 26.5987)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D238F #458F23
analogous
#37238F #6D238F #8F237B
triadic
#6D238F #8F6D23 #238F6D
tetradic
#6D238F #8F3723 #458F23 #237B8F
square
#6D238F #8F3723 #458F23 #237B8F
split-complementary
#6D238F #7B8F23 #238F37
monochromatic
#220B2D #48175E #6D238F #922FC0 #AE57D6

Accessibility & contrast

On white

9.18
#6D238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#6D238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D238F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D238F#FFFFFF#000000##FFFFFF
##6D238F1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#16498D
Tritanopia (blue-blind)
#693B57
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6d238f;
/* rgb */ color: rgb(109, 35, 143);
/* oklch */ color: oklch(42.3% 0.172 312.6);
Tailwind
colors: {
  custom: {
    50: '#9b66b0',
    500: '#6d238f',
    950: '#000000',
  },
}
SCSS
$custom: #6d238f;
$custom-light: #9b66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d238f",
  "rgb": {
    "r": 109,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 281.111,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42282,
    "c": 0.17239,
    "h": 312.6
  },
  "luminance": 0.06436
}

Semantic roles & 50–950 ramp

primary
#6D238F
secondary
#74BA54
accent
#E44476
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6D238F

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

Preview Lab → · Contrast checker → · Palette generator →

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