#6B229B#6B229B

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

Color values

HEX#6B229B
RGBrgb(107, 34, 155)
HSLhsl(276, 64%, 37%)
HSVhsv(276, 78%, 61%)
CMYKcmyk(31%, 78.1%, 0%, 39.2%)
CIE-LABlab(30.96, 52.18, -51.47)
CIE-LCHlch(30.96, 73.29, 315.39°)
OKLaboklab(42.84% 0.1126 -0.1463)
OKLCHoklch(42.84% 0.185 307.6)
XYZxyz(12.5506, 6.6366, 31.6238)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B229B #529B22
analogous
#2E229B #6B229B #9B228F
triadic
#6B229B #9B6B22 #229B6B
tetradic
#6B229B #9B2E22 #529B22 #228F9B
square
#6B229B #9B2E22 #529B22 #228F9B
split-complementary
#6B229B #8F9B22 #229B2E
monochromatic
#260C37 #481769 #6B229B #8E2DCD #A95CDB

Accessibility & contrast

On white

9.02
#6B229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B229B
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B229B#FFFFFF#000000##FFFFFF
##6B229B1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b229b;
/* rgb */ color: rgb(107, 34, 155);
/* oklch */ color: oklch(42.8% 0.185 307.6);
Tailwind
colors: {
  custom: {
    50: '#9a66b9',
    500: '#6b229b',
    950: '#000000',
  },
}
SCSS
$custom: #6b229b;
$custom-light: #9a66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6b229b",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 276.198,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.42843,
    "c": 0.18461,
    "h": 307.6
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#6B229B
secondary
#82C059
accent
#E74183
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B229B

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

Preview Lab → · Contrast checker → · Palette generator →

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