#6A288E#6A288E

#6A288E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.164 H 310.9°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#6A288E
RGBrgb(106, 40, 142)
HSLhsl(279, 56%, 36%)
HSVhsv(279, 72%, 56%)
CMYKcmyk(25.4%, 71.8%, 0%, 44.3%)
CIE-LABlab(30.72, 46.51, -43.90)
CIE-LCHlch(30.72, 63.95, 316.65°)
OKLaboklab(42.33% 0.1076 -0.1241)
OKLCHoklch(42.33% 0.164 310.9)
XYZxyz(11.5842, 6.5350, 26.2371)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A288E #4C8E28
analogous
#37288E #6A288E #8E287F
triadic
#6A288E #8E6A28 #288E6A
tetradic
#6A288E #8E3728 #4C8E28 #287F8E
square
#6A288E #8E3728 #4C8E28 #287F8E
split-complementary
#6A288E #7F8E28 #288E37
monochromatic
#230D2F #461B5E #6A288E #8E35BE #A95FD2

Accessibility & contrast

On white

9.10
#6A288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#6A288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A288E
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A288E#FFFFFF#000000##FFFFFF
##6A288E1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#19498C
Tritanopia (blue-blind)
#653E58
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #6a288e;
/* rgb */ color: rgb(106, 40, 142);
/* oklch */ color: oklch(42.3% 0.164 310.9);
Tailwind
colors: {
  custom: {
    50: '#9868b0',
    500: '#6a288e',
    950: '#000000',
  },
}
SCSS
$custom: #6a288e;
$custom-light: #9868b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a288e",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 278.824,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42333,
    "c": 0.16424,
    "h": 310.9
  },
  "luminance": 0.06535
}

Semantic roles & 50–950 ramp

primary
#6A288E
secondary
#7BB75B
accent
#DF487E
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A288E

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

Preview Lab → · Contrast checker → · Palette generator →

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