#35157C#35157C

#35157C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.157 H 288.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#35157C
RGBrgb(53, 21, 124)
HSLhsl(259, 71%, 28%)
HSVhsv(259, 83%, 49%)
CMYKcmyk(57.3%, 83.1%, 0%, 51.4%)
CIE-LABlab(19.01, 41.01, -52.02)
CIE-LCHlch(19.01, 66.24, 308.25°)
OKLaboklab(32.05% 0.0487 -0.1497)
OKLCHoklch(32.05% 0.157 288)
XYZxyz(5.3734, 2.7482, 19.3122)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35157C #5C7C15
analogous
#15287C #35157C #68157C
triadic
#35157C #7C3515 #157C35
tetradic
#35157C #7C1528 #5C7C15 #157C68
square
#35157C #7C1528 #5C7C15 #157C68
split-complementary
#35157C #7C6815 #287C15
monochromatic
#0B041A #1F0C48 #35157C #4B1EB0 #6530DC

Accessibility & contrast

On white

13.55
#35157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#35157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35157C
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35157C#FFFFFF#000000##FFFFFF
##35157C1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#163449
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #35157c;
/* rgb */ color: rgb(53, 21, 124);
/* oklch */ color: oklch(32.0% 0.157 288.0);
Tailwind
colors: {
  custom: {
    50: '#7657a3',
    500: '#35157c',
    950: '#000000',
  },
}
SCSS
$custom: #35157c;
$custom-light: #7657a3;
$custom-dark: #000000;
JSON
{
  "hex": "#35157c",
  "rgb": {
    "r": 53,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 258.641,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32048,
    "c": 0.15743,
    "h": 288
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#35157C
secondary
#8DB13C
accent
#EE3AB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #35157C

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

Preview Lab → · Contrast checker → · Palette generator →

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