#6C23B2#6C23B2

#6C23B2 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 45.0% C 0.206 H 301.3°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#6C23B2
RGBrgb(108, 35, 178)
HSLhsl(271, 67%, 42%)
HSVhsv(271, 80%, 70%)
CMYKcmyk(39.3%, 80.3%, 0%, 30.2%)
CIE-LABlab(33.15, 57.28, -61.77)
CIE-LCHlch(33.15, 84.24, 312.84°)
OKLaboklab(44.99% 0.1072 -0.1765)
OKLCHoklch(44.99% 0.207 301.3)
XYZxyz(14.8193, 7.6045, 42.7979)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C23B2 #69B223
analogous
#2423B2 #6C23B2 #B223B1
triadic
#6C23B2 #B26C23 #23B26C
tetradic
#6C23B2 #B22423 #69B223 #23B1B2
square
#6C23B2 #B22423 #69B223 #23B1B2
split-complementary
#6C23B2 #B1B223 #23B224
monochromatic
#2E0F4C #4D197F #6C23B2 #8B3AD8 #A96DE2

Accessibility & contrast

On white

8.33
#6C23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6C23B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C23B2
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C23B2#FFFFFF#000000##FFFFFF
##6C23B21.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#5C4B6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c23b2;
/* rgb */ color: rgb(108, 35, 178);
/* oklch */ color: oklch(45.0% 0.206 301.3);
Tailwind
colors: {
  custom: {
    50: '#9d68ca',
    500: '#6c23b2',
    950: '#000000',
  },
}
SCSS
$custom: #6c23b2;
$custom-light: #9d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c23b2",
  "rgb": {
    "r": 108,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 270.629,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44988,
    "c": 0.2065,
    "h": 301.3
  },
  "luminance": 0.07605
}

Semantic roles & 50–950 ramp

primary
#6C23B2
secondary
#97C968
accent
#EA3E92
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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