#68278B#68278B

#68278B is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.162 H 311.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#68278B
RGBrgb(104, 39, 139)
HSLhsl(279, 56%, 35%)
HSVhsv(279, 72%, 55%)
CMYKcmyk(25.2%, 71.9%, 0%, 45.5%)
CIE-LABlab(30.06, 45.84, -43.14)
CIE-LCHlch(30.06, 62.94, 316.74°)
OKLaboklab(41.73% 0.1063 -0.1219)
OKLCHoklch(41.73% 0.162 311.1)
XYZxyz(11.0938, 6.2584, 25.0447)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#68278B #4A8B27
analogous
#36278B #68278B #8B277C
triadic
#68278B #8B6827 #278B68
tetradic
#68278B #8B3627 #4A8B27 #277C8B
square
#68278B #8B3627 #4A8B27 #277C8B
split-complementary
#68278B #7C8B27 #278B36
monochromatic
#200C2B #441A5B #68278B #8C34BB #A85BD1

Accessibility & contrast

On white

9.33
#68278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#68278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #68278B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##68278B#FFFFFF#000000##FFFFFF
##68278B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#194889
Tritanopia (blue-blind)
#633D56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #68278b;
/* rgb */ color: rgb(104, 39, 139);
/* oklch */ color: oklch(41.7% 0.162 311.1);
Tailwind
colors: {
  custom: {
    50: '#9767ad',
    500: '#68278b',
    950: '#000000',
  },
}
SCSS
$custom: #68278b;
$custom-light: #9767ad;
$custom-dark: #000000;
JSON
{
  "hex": "#68278b",
  "rgb": {
    "r": 104,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 279,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.41727,
    "c": 0.16176,
    "h": 311.1
  },
  "luminance": 0.06258
}

Semantic roles & 50–950 ramp

primary
#68278B
secondary
#79B658
accent
#DF487D
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #68278B

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

Preview Lab → · Contrast checker → · Palette generator →

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