#6D229B#6D229B

#6D229B is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.185 H 308.6°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#6D229B
RGBrgb(109, 34, 155)
HSLhsl(277, 64%, 37%)
HSVhsv(277, 78%, 61%)
CMYKcmyk(29.7%, 78.1%, 0%, 39.2%)
CIE-LABlab(31.26, 52.54, -50.98)
CIE-LCHlch(31.26, 73.21, 315.86°)
OKLaboklab(43.11% 0.1154 -0.1448)
OKLCHoklch(43.11% 0.185 308.6)
XYZxyz(12.7939, 6.7620, 31.6352)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D229B #509B22
analogous
#31229B #6D229B #9B228D
triadic
#6D229B #9B6D22 #229B6D
tetradic
#6D229B #9B3122 #509B22 #228D9B
square
#6D229B #9B3122 #509B22 #228D9B
split-complementary
#6D229B #8D9B22 #229B31
monochromatic
#260C37 #4A1769 #6D229B #902DCD #AB5CDB

Accessibility & contrast

On white

8.93
#6D229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D229B
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D229B#FFFFFF#000000##FFFFFF
##6D229B1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#66405E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6d229b;
/* rgb */ color: rgb(109, 34, 155);
/* oklch */ color: oklch(43.1% 0.185 308.6);
Tailwind
colors: {
  custom: {
    50: '#9c66b9',
    500: '#6d229b',
    950: '#000000',
  },
}
SCSS
$custom: #6d229b;
$custom-light: #9c66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#6d229b",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 277.19,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43111,
    "c": 0.18516,
    "h": 308.6
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

primary
#6D229B
secondary
#80C059
accent
#E74180
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6D229B

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

Preview Lab → · Contrast checker → · Palette generator →

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