#6151AC#6151AC

#6151AC is a mid, vivid violet. Relative luminance 0.114; OKLCH L 49.7% C 0.140 H 288.3°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6151AC
RGBrgb(97, 81, 172)
HSLhsl(251, 36%, 50%)
HSVhsv(251, 53%, 67%)
CMYKcmyk(43.6%, 52.9%, 0%, 32.5%)
CIE-LABlab(40.25, 29.62, -46.75)
CIE-LCHlch(40.25, 55.34, 302.36°)
OKLaboklab(49.7% 0.044 -0.1328)
OKLCHoklch(49.7% 0.14 288.3)
XYZxyz(15.3165, 11.4043, 40.4160)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151AC #9CAC51
analogous
#516FAC #6151AC #8E51AC
triadic
#6151AC #AC6151 #51AC61
tetradic
#6151AC #AC516F #9CAC51 #51AC8E
square
#6151AC #AC516F #9CAC51 #51AC8E
split-complementary
#6151AC #AC8E51 #6FAC51
monochromatic
#322A59 #4A3D82 #6151AC #867AC0 #ACA3D4

Accessibility & contrast

On white

6.40
#6151AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6151AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6151AC#FFFFFF#000000##FFFFFF
##6151AC1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2761AF
Deuteranopia (green-blind)
#275DAA
Tritanopia (blue-blind)
#4B6477
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6151ac;
/* rgb */ color: rgb(97, 81, 172);
/* oklch */ color: oklch(49.7% 0.140 288.3);
Tailwind
colors: {
  custom: {
    50: '#9282c5',
    500: '#6151ac',
    950: '#000000',
  },
}
SCSS
$custom: #6151ac;
$custom-light: #9282c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6151ac",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 250.549,
    "s": 35.968,
    "l": 49.608
  },
  "oklch": {
    "l": 0.49702,
    "c": 0.13994,
    "h": 288.3
  },
  "luminance": 0.11405
}

Semantic roles & 50–950 ramp

primary
#6151AC
secondary
#BAC198
accent
#CC5CB8
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #6151AC

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

Preview Lab → · Contrast checker → · Palette generator →

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