#68227F#68227F

#68227F is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.3% C 0.156 H 316.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#68227F
RGBrgb(104, 34, 127)
HSLhsl(285, 58%, 32%)
HSVhsv(285, 73%, 50%)
CMYKcmyk(18.1%, 73.2%, 0%, 50.2%)
CIE-LABlab(28.43, 45.40, -38.26)
CIE-LCHlch(28.43, 59.37, 319.88°)
OKLaboklab(40.3% 0.1131 -0.1076)
OKLCHoklch(40.3% 0.156 316.4)
XYZxyz(10.1111, 5.6198, 20.6267)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68227F #397F22
analogous
#3A227F #68227F #7F2268
triadic
#68227F #7F6822 #227F68
tetradic
#68227F #7F3A22 #397F22 #22687F
square
#68227F #7F3A22 #397F22 #22687F
split-complementary
#68227F #687F22 #227F3A
monochromatic
#19081E #40154F #68227F #902FAF #AF4CCF

Accessibility & contrast

On white

9.89
#68227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#68227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68227F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68227F#FFFFFF#000000##FFFFFF
##68227F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#22457D
Tritanopia (blue-blind)
#67354E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #68227f;
/* rgb */ color: rgb(104, 34, 127);
/* oklch */ color: oklch(40.3% 0.156 316.4);
Tailwind
colors: {
  custom: {
    50: '#9664a5',
    500: '#68227f',
    950: '#000000',
  },
}
SCSS
$custom: #68227f;
$custom-light: #9664a5;
$custom-dark: #000000;
JSON
{
  "hex": "#68227f",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 285.161,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40301,
    "c": 0.15611,
    "h": 316.4
  },
  "luminance": 0.05619
}

Semantic roles & 50–950 ramp

primary
#68227F
secondary
#65B24B
accent
#E1476D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #68227F

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

Preview Lab → · Contrast checker → · Palette generator →

#68227F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva