#6C229B#6C229B

#6C229B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.185 H 308.1°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#6C229B
RGBrgb(108, 34, 155)
HSLhsl(277, 64%, 37%)
HSVhsv(277, 78%, 61%)
CMYKcmyk(30.3%, 78.1%, 0%, 39.2%)
CIE-LABlab(31.11, 52.36, -51.23)
CIE-LCHlch(31.11, 73.25, 315.62°)
OKLaboklab(42.98% 0.114 -0.1456)
OKLCHoklch(42.98% 0.185 308.1)
XYZxyz(12.6715, 6.6990, 31.6295)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C229B #519B22
analogous
#2F229B #6C229B #9B228E
triadic
#6C229B #9B6C22 #229B6C
tetradic
#6C229B #9B2F22 #519B22 #228E9B
square
#6C229B #9B2F22 #519B22 #228E9B
split-complementary
#6C229B #8E9B22 #229B2F
monochromatic
#260C37 #491769 #6C229B #8F2DCD #AA5CDB

Accessibility & contrast

On white

8.98
#6C229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#6C229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C229B
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C229B#FFFFFF#000000##FFFFFF
##6C229B1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#64405E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6c229b;
/* rgb */ color: rgb(108, 34, 155);
/* oklch */ color: oklch(43.0% 0.185 308.1);
Tailwind
colors: {
  custom: {
    50: '#9b66b9',
    500: '#6c229b',
    950: '#000000',
  },
}
SCSS
$custom: #6c229b;
$custom-light: #9b66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6c229b",
  "rgb": {
    "r": 108,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 276.694,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42977,
    "c": 0.18489,
    "h": 308.1
  },
  "luminance": 0.06699
}

Semantic roles & 50–950 ramp

primary
#6C229B
secondary
#81C059
accent
#E74181
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6C229B

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

Preview Lab → · Contrast checker → · Palette generator →

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