#6B229F#6B229F

#6B229F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.2% C 0.189 H 306.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#6B229F
RGBrgb(107, 34, 159)
HSLhsl(275, 65%, 38%)
HSVhsv(275, 79%, 62%)
CMYKcmyk(32.7%, 78.6%, 0%, 37.6%)
CIE-LABlab(31.28, 53.09, -53.39)
CIE-LCHlch(31.28, 75.29, 314.84°)
OKLaboklab(43.17% 0.1117 -0.1519)
OKLCHoklch(43.17% 0.189 306.3)
XYZxyz(12.8921, 6.7732, 33.4224)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B229F #569F22
analogous
#2C229F #6B229F #9F2294
triadic
#6B229F #9F6B22 #229F6B
tetradic
#6B229F #9F2C22 #569F22 #22949F
square
#6B229F #9F2C22 #569F22 #22949F
split-complementary
#6B229F #949F22 #229F2C
monochromatic
#270C3A #49176D #6B229F #8D2DD1 #A85FDD

Accessibility & contrast

On white

8.92
#6B229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B229F
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B229F#FFFFFF#000000##FFFFFF
##6B229F1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#624260
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6b229f;
/* rgb */ color: rgb(107, 34, 159);
/* oklch */ color: oklch(43.2% 0.189 306.3);
Tailwind
colors: {
  custom: {
    50: '#9b66bc',
    500: '#6b229f',
    950: '#000000',
  },
}
SCSS
$custom: #6b229f;
$custom-light: #9b66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b229f",
  "rgb": {
    "r": 107,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 275.04,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.43168,
    "c": 0.18855,
    "h": 306.3
  },
  "luminance": 0.06773
}

Semantic roles & 50–950 ramp

primary
#6B229F
secondary
#86C15B
accent
#E84086
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B229F

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

Preview Lab → · Contrast checker → · Palette generator →

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