#6B229E#6B229E

#6B229E is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.1% C 0.188 H 306.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#6B229E
RGBrgb(107, 34, 158)
HSLhsl(275, 65%, 38%)
HSVhsv(275, 78%, 62%)
CMYKcmyk(32.3%, 78.5%, 0%, 38%)
CIE-LABlab(31.20, 52.86, -52.91)
CIE-LCHlch(31.20, 74.79, 314.97°)
OKLaboklab(43.09% 0.1119 -0.1505)
OKLCHoklch(43.09% 0.188 306.6)
XYZxyz(12.8056, 6.7386, 32.9672)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B229E #559E22
analogous
#2D229E #6B229E #9E2293
triadic
#6B229E #9E6B22 #229E6B
tetradic
#6B229E #9E2D22 #559E22 #22939E
square
#6B229E #9E2D22 #559E22 #22939E
split-complementary
#6B229E #939E22 #229E2D
monochromatic
#270C39 #49176C #6B229E #8D2DD0 #A85EDC

Accessibility & contrast

On white

8.95
#6B229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#6B229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B229E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B229E#FFFFFF#000000##FFFFFF
##6B229E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#62425F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #6b229e;
/* rgb */ color: rgb(107, 34, 158);
/* oklch */ color: oklch(43.1% 0.188 306.6);
Tailwind
colors: {
  custom: {
    50: '#9b66bc',
    500: '#6b229e',
    950: '#000000',
  },
}
SCSS
$custom: #6b229e;
$custom-light: #9b66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b229e",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 275.323,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43086,
    "c": 0.18757,
    "h": 306.6
  },
  "luminance": 0.06738
}

Semantic roles & 50–950 ramp

primary
#6B229E
secondary
#85C15B
accent
#E84085
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B229E

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

Preview Lab → · Contrast checker → · Palette generator →

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