#6C238F#6C238F

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

Color values

HEX#6C238F
RGBrgb(108, 35, 143)
HSLhsl(281, 61%, 35%)
HSVhsv(281, 76%, 56%)
CMYKcmyk(24.5%, 75.5%, 0%, 43.9%)
CIE-LABlab(30.34, 49.30, -45.13)
CIE-LCHlch(30.34, 66.83, 317.53°)
OKLaboklab(42.14% 0.1154 -0.1276)
OKLCHoklch(42.14% 0.172 312.1)
XYZxyz(11.7424, 6.3737, 26.5930)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C238F #468F23
analogous
#36238F #6C238F #8F237C
triadic
#6C238F #8F6C23 #238F6C
tetradic
#6C238F #8F3623 #468F23 #237C8F
square
#6C238F #8F3623 #468F23 #237C8F
split-complementary
#6C238F #7C8F23 #238F36
monochromatic
#220B2D #47175E #6C238F #912FC0 #AD57D6

Accessibility & contrast

On white

9.23
#6C238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6C238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C238F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C238F#FFFFFF#000000##FFFFFF
##6C238F1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#14498D
Tritanopia (blue-blind)
#683B57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6c238f;
/* rgb */ color: rgb(108, 35, 143);
/* oklch */ color: oklch(42.1% 0.172 312.1);
Tailwind
colors: {
  custom: {
    50: '#9a66b0',
    500: '#6c238f',
    950: '#000000',
  },
}
SCSS
$custom: #6c238f;
$custom-light: #9a66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c238f",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 280.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.42143,
    "c": 0.17205,
    "h": 312.1
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

primary
#6C238F
secondary
#75BA54
accent
#E44478
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6C238F

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

Preview Lab → · Contrast checker → · Palette generator →

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