#68227B#68227B

#68227B is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.0% C 0.152 H 318.2°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#68227B
RGBrgb(104, 34, 123)
HSLhsl(287, 57%, 31%)
HSVhsv(287, 72%, 48%)
CMYKcmyk(15.4%, 72.4%, 0%, 51.8%)
CIE-LABlab(28.16, 44.55, -36.17)
CIE-LCHlch(28.16, 57.39, 320.93°)
OKLaboklab(40.02% 0.1135 -0.1015)
OKLCHoklch(40.02% 0.152 318.2)
XYZxyz(9.8556, 5.5176, 19.2809)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68227B #357B22
analogous
#3B227B #68227B #7B2261
triadic
#68227B #7B6822 #227B68
tetradic
#68227B #7B3B22 #357B22 #22617B
square
#68227B #7B3B22 #357B22 #22617B
split-complementary
#68227B #617B22 #227B3B
monochromatic
#17071B #3F154B #68227B #912FAB #B14ACD

Accessibility & contrast

On white

9.98
#68227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#68227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68227B
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68227B#FFFFFF#000000##FFFFFF
##68227B1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#264579
Tritanopia (blue-blind)
#68334C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #68227b;
/* rgb */ color: rgb(104, 34, 123);
/* oklch */ color: oklch(40.0% 0.152 318.2);
Tailwind
colors: {
  custom: {
    50: '#9664a2',
    500: '#68227b',
    950: '#000000',
  },
}
SCSS
$custom: #68227b;
$custom-light: #9664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#68227b",
  "rgb": {
    "r": 104,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 287.191,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40021,
    "c": 0.15221,
    "h": 318.2
  },
  "luminance": 0.05517
}

Semantic roles & 50–950 ramp

primary
#68227B
secondary
#60AE4B
accent
#E04868
background
#F9F6FA
surface
#F2EBF3
border
#CCC6CD
text
#0E060F
muted
#7E7A7F

Preview Lab

Preview with #68227B

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

Preview Lab → · Contrast checker → · Palette generator →

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