#35157A#35157A

#35157A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.155 H 288.6°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#35157A
RGBrgb(53, 21, 122)
HSLhsl(259, 71%, 28%)
HSVhsv(259, 83%, 48%)
CMYKcmyk(56.6%, 82.8%, 0%, 52.2%)
CIE-LABlab(18.79, 40.43, -51.09)
CIE-LCHlch(18.79, 65.15, 308.36°)
OKLaboklab(31.84% 0.0494 -0.147)
OKLCHoklch(31.84% 0.155 288.6)
XYZxyz(5.2482, 2.6981, 18.6528)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35157A #5A7A15
analogous
#15277A #35157A #67157A
triadic
#35157A #7A3515 #157A35
tetradic
#35157A #7A1527 #5A7A15 #157A67
square
#35157A #7A1527 #5A7A15 #157A67
split-complementary
#35157A #7A6715 #277A15
monochromatic
#0B041A #1E0C46 #35157A #4C1EAE #652EDB

Accessibility & contrast

On white

13.64
#35157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#35157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35157A
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35157A#FFFFFF#000000##FFFFFF
##35157A1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#183348
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #35157a;
/* rgb */ color: rgb(53, 21, 122);
/* oklch */ color: oklch(31.8% 0.155 288.6);
Tailwind
colors: {
  custom: {
    50: '#7557a1',
    500: '#35157a',
    950: '#000000',
  },
}
SCSS
$custom: #35157a;
$custom-light: #7557a1;
$custom-dark: #000000;
JSON
{
  "hex": "#35157a",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 259.01,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31835,
    "c": 0.15508,
    "h": 288.6
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#35157A
secondary
#8BAF3B
accent
#ED3AB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #35157A

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

Preview Lab → · Contrast checker → · Palette generator →

#35157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva