#6B229A#6B229A

#6B229A is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.8% C 0.184 H 307.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#6B229A
RGBrgb(107, 34, 154)
HSLhsl(277, 64%, 37%)
HSVhsv(277, 78%, 60%)
CMYKcmyk(30.5%, 77.9%, 0%, 39.6%)
CIE-LABlab(30.89, 51.95, -50.99)
CIE-LCHlch(30.89, 72.80, 315.53°)
OKLaboklab(42.76% 0.1128 -0.1449)
OKLCHoklch(42.76% 0.184 307.9)
XYZxyz(12.4669, 6.6031, 31.1834)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B229A #519A22
analogous
#2F229A #6B229A #9A228D
triadic
#6B229A #9A6B22 #229A6B
tetradic
#6B229A #9A2F22 #519A22 #228D9A
square
#6B229A #9A2F22 #519A22 #228D9A
split-complementary
#6B229A #8D9A22 #229A2F
monochromatic
#250C36 #481768 #6B229A #8E2DCC #A95BDB

Accessibility & contrast

On white

9.05
#6B229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#6B229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B229A
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B229A#FFFFFF#000000##FFFFFF
##6B229A1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004998
Tritanopia (blue-blind)
#63405D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6b229a;
/* rgb */ color: rgb(107, 34, 154);
/* oklch */ color: oklch(42.8% 0.184 307.9);
Tailwind
colors: {
  custom: {
    50: '#9a66b9',
    500: '#6b229a',
    950: '#000000',
  },
}
SCSS
$custom: #6b229a;
$custom-light: #9a66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6b229a",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 276.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42763,
    "c": 0.18364,
    "h": 307.9
  },
  "luminance": 0.06603
}

Semantic roles & 50–950 ramp

primary
#6B229A
secondary
#81BF58
accent
#E74182
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0611
muted
#7E7A80

Preview Lab

Preview with #6B229A

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

Preview Lab → · Contrast checker → · Palette generator →

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