#6145D8#6145D8

#6145D8 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.1% C 0.213 H 284.8°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6145D8
RGBrgb(97, 69, 216)
HSLhsl(251, 65%, 56%)
HSVhsv(251, 68%, 85%)
CMYKcmyk(55.1%, 68.1%, 0%, 15.3%)
CIE-LABlab(40.82, 49.71, -71.46)
CIE-LCHlch(40.82, 87.05, 304.82°)
OKLaboklab(51.13% 0.0541 -0.2055)
OKLCHoklch(51.13% 0.213 284.8)
XYZxyz(19.4488, 11.7544, 66.1964)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6145D8 #BCD845
analogous
#4572D8 #6145D8 #AB45D8
triadic
#6145D8 #D86145 #45D861
tetradic
#6145D8 #D84572 #BCD845 #45D8AB
square
#6145D8 #D84572 #BCD845 #45D8AB
split-complementary
#6145D8 #D8AB45 #72D845
monochromatic
#301C86 #4327B9 #6145D8 #8C78E3 #B7AAED

Accessibility & contrast

On white

6.27
#6145D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6145D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6145D8
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6145D8#FFFFFF#000000##FFFFFF
##6145D81.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DC
Deuteranopia (green-blind)
#005CD5
Tritanopia (blue-blind)
#2A6B89
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6145d8;
/* rgb */ color: rgb(97, 69, 216);
/* oklch */ color: oklch(51.1% 0.213 284.8);
Tailwind
colors: {
  custom: {
    50: '#997be5',
    500: '#6145d8',
    950: '#000000',
  },
}
SCSS
$custom: #6145d8;
$custom-light: #997be5;
$custom-dark: #000000;
JSON
{
  "hex": "#6145d8",
  "rgb": {
    "r": 97,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 251.429,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51133,
    "c": 0.21252,
    "h": 284.8
  },
  "luminance": 0.11755
}

Semantic roles & 50–950 ramp

primary
#6145D8
secondary
#CFDB9E
accent
#E840C8
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6145D8

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

Preview Lab → · Contrast checker → · Palette generator →

#6145D8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva