#6D229C#6D229C

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

Color values

HEX#6D229C
RGBrgb(109, 34, 156)
HSLhsl(277, 64%, 37%)
HSVhsv(277, 78%, 61%)
CMYKcmyk(30.1%, 78.2%, 0%, 38.8%)
CIE-LABlab(31.34, 52.77, -51.47)
CIE-LCHlch(31.34, 73.71, 315.72°)
OKLaboklab(43.19% 0.1152 -0.1462)
OKLCHoklch(43.19% 0.186 308.2)
XYZxyz(12.8782, 6.7958, 32.0793)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D229C #519C22
analogous
#30229C #6D229C #9C228E
triadic
#6D229C #9C6D22 #229C6D
tetradic
#6D229C #9C3022 #519C22 #228E9C
square
#6D229C #9C3022 #519C22 #228E9C
split-complementary
#6D229C #8E9C22 #229C30
monochromatic
#270C38 #4A176A #6D229C #902DCE #AB5DDC

Accessibility & contrast

On white

8.90
#6D229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#6D229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D229C
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D229C#FFFFFF#000000##FFFFFF
##6D229C1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#65405E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6d229c;
/* rgb */ color: rgb(109, 34, 156);
/* oklch */ color: oklch(43.2% 0.186 308.2);
Tailwind
colors: {
  custom: {
    50: '#9c66ba',
    500: '#6d229c',
    950: '#000000',
  },
}
SCSS
$custom: #6d229c;
$custom-light: #9c66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#6d229c",
  "rgb": {
    "r": 109,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 276.885,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43191,
    "c": 0.18613,
    "h": 308.2
  },
  "luminance": 0.06796
}

Semantic roles & 50–950 ramp

primary
#6D229C
secondary
#81C05A
accent
#E74181
background
#FAF6FB
surface
#F3EBF6
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6D229C

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

Preview Lab → · Contrast checker → · Palette generator →

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