#6B229D#6B229D

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

Color values

HEX#6B229D
RGBrgb(107, 34, 157)
HSLhsl(276, 64%, 37%)
HSVhsv(276, 78%, 62%)
CMYKcmyk(31.8%, 78.3%, 0%, 38.4%)
CIE-LABlab(31.12, 52.63, -52.43)
CIE-LCHlch(31.12, 74.29, 315.11°)
OKLaboklab(43.01% 0.1121 -0.1491)
OKLCHoklch(43.01% 0.187 306.9)
XYZxyz(12.7199, 6.7043, 32.5157)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B229D #549D22
analogous
#2E229D #6B229D #9D2291
triadic
#6B229D #9D6B22 #229D6B
tetradic
#6B229D #9D2E22 #549D22 #22919D
square
#6B229D #9D2E22 #549D22 #22919D
split-complementary
#6B229D #919D22 #229D2E
monochromatic
#260C38 #49176B #6B229D #8D2DCF #A95DDC

Accessibility & contrast

On white

8.97
#6B229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B229D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B229D#FFFFFF#000000##FFFFFF
##6B229D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#004A9B
Tritanopia (blue-blind)
#62415F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6b229d;
/* rgb */ color: rgb(107, 34, 157);
/* oklch */ color: oklch(43.0% 0.187 306.9);
Tailwind
colors: {
  custom: {
    50: '#9a66bb',
    500: '#6b229d',
    950: '#000000',
  },
}
SCSS
$custom: #6b229d;
$custom-light: #9a66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#6b229d",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 275.61,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43005,
    "c": 0.18658,
    "h": 306.9
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#6B229D
secondary
#84C15A
accent
#E74084
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B229D

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

Preview Lab → · Contrast checker → · Palette generator →

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