#6B229C#6B229C

#6B229C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.186 H 307.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#6B229C
RGBrgb(107, 34, 156)
HSLhsl(276, 64%, 37%)
HSVhsv(276, 78%, 61%)
CMYKcmyk(31.4%, 78.2%, 0%, 38.8%)
CIE-LABlab(31.04, 52.40, -51.96)
CIE-LCHlch(31.04, 73.79, 315.25°)
OKLaboklab(42.92% 0.1124 -0.1477)
OKLCHoklch(42.92% 0.186 307.3)
XYZxyz(12.6349, 6.6703, 32.0679)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B229C #539C22
analogous
#2E229C #6B229C #9C2290
triadic
#6B229C #9C6B22 #229C6B
tetradic
#6B229C #9C2E22 #539C22 #22909C
square
#6B229C #9C2E22 #539C22 #22909C
split-complementary
#6B229C #909C22 #229C2E
monochromatic
#260C38 #49176A #6B229C #8D2DCE #A95DDC

Accessibility & contrast

On white

9.00
#6B229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#6B229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B229C
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B229C#FFFFFF#000000##FFFFFF
##6B229C1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#63415E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6b229c;
/* rgb */ color: rgb(107, 34, 156);
/* oklch */ color: oklch(42.9% 0.186 307.3);
Tailwind
colors: {
  custom: {
    50: '#9a66ba',
    500: '#6b229c',
    950: '#000000',
  },
}
SCSS
$custom: #6b229c;
$custom-light: #9a66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#6b229c",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 275.902,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.18559,
    "h": 307.3
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#6B229C
secondary
#83C05A
accent
#E74184
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B229C

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

Preview Lab → · Contrast checker → · Palette generator →

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