#6151AF#6151AF

#6151AF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 49.9% C 0.144 H 287.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#6151AF
RGBrgb(97, 81, 175)
HSLhsl(250, 37%, 50%)
HSVhsv(250, 54%, 69%)
CMYKcmyk(44.6%, 53.7%, 0%, 31.4%)
CIE-LABlab(40.44, 30.51, -48.21)
CIE-LCHlch(40.44, 57.06, 302.33°)
OKLaboklab(49.91% 0.0441 -0.1372)
OKLCHoklch(49.91% 0.144 287.8)
XYZxyz(15.6079, 11.5208, 41.9505)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6151AF #9FAF51
analogous
#5170AF #6151AF #9051AF
triadic
#6151AF #AF6151 #51AF61
tetradic
#6151AF #AF5170 #9FAF51 #51AF90
square
#6151AF #AF5170 #9FAF51 #51AF90
split-complementary
#6151AF #AF9051 #70AF51
monochromatic
#322A5C #4A3D85 #6151AF #877BC2 #ADA5D6

Accessibility & contrast

On white

6.36
#6151AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6151AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6151AF#FFFFFF#000000##FFFFFF
##6151AF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#235DAD
Tritanopia (blue-blind)
#496578
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6151af;
/* rgb */ color: rgb(97, 81, 175);
/* oklch */ color: oklch(49.9% 0.144 287.8);
Tailwind
colors: {
  custom: {
    50: '#9382c7',
    500: '#6151af',
    950: '#000000',
  },
}
SCSS
$custom: #6151af;
$custom-light: #9382c7;
$custom-dark: #000000;
JSON
{
  "hex": "#6151af",
  "rgb": {
    "r": 97,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 250.213,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49905,
    "c": 0.14408,
    "h": 287.8
  },
  "luminance": 0.11521
}

Semantic roles & 50–950 ramp

primary
#6151AF
secondary
#BCC399
accent
#CD5BBA
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #6151AF

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

Preview Lab → · Contrast checker → · Palette generator →

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