#6151AA#6151AA

#6151AA is a mid, vivid violet. Relative luminance 0.113; OKLCH L 49.6% C 0.137 H 288.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#6151AA
RGBrgb(97, 81, 170)
HSLhsl(251, 35%, 49%)
HSVhsv(251, 52%, 67%)
CMYKcmyk(42.9%, 52.4%, 0%, 33.3%)
CIE-LABlab(40.13, 29.03, -45.76)
CIE-LCHlch(40.13, 54.19, 302.39°)
OKLaboklab(49.57% 0.0438 -0.13)
OKLCHoklch(49.57% 0.137 288.6)
XYZxyz(15.1259, 11.3280, 39.4120)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151AA #9AAA51
analogous
#516EAA #6151AA #8E51AA
triadic
#6151AA #AA6151 #51AA61
tetradic
#6151AA #AA516E #9AAA51 #51AA8E
square
#6151AA #AA516E #9AAA51 #51AA8E
split-complementary
#6151AA #AA8E51 #6EAA51
monochromatic
#322A57 #493D81 #6151AA #8679BF #ABA2D3

Accessibility & contrast

On white

6.43
#6151AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6151AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6151AA
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6151AA#FFFFFF#000000##FFFFFF
##6151AA1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AD
Deuteranopia (green-blind)
#2A5CA8
Tritanopia (blue-blind)
#4C6476
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6151aa;
/* rgb */ color: rgb(97, 81, 170);
/* oklch */ color: oklch(49.6% 0.137 288.6);
Tailwind
colors: {
  custom: {
    50: '#9282c4',
    500: '#6151aa',
    950: '#000000',
  },
}
SCSS
$custom: #6151aa;
$custom-light: #9282c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6151aa",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 250.787,
    "s": 35.458,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49568,
    "c": 0.13716,
    "h": 288.6
  },
  "luminance": 0.11329
}

Semantic roles & 50–950 ramp

primary
#6151AA
secondary
#B9C097
accent
#CB5CB8
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #6151AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6151AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva