#35125C#35125C

#35125C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.123 H 300.0°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#35125C
RGBrgb(53, 18, 92)
HSLhsl(268, 67%, 22%)
HSVhsv(268, 80%, 36%)
CMYKcmyk(42.4%, 80.4%, 0%, 63.9%)
CIE-LABlab(15.29, 33.30, -37.22)
CIE-LCHlch(15.29, 49.94, 311.82°)
OKLaboklab(28.47% 0.0614 -0.1063)
OKLCHoklch(28.47% 0.123 300)
XYZxyz(3.6158, 1.9622, 10.3114)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35125C #395C12
analogous
#12145C #35125C #5A125C
triadic
#35125C #5C3512 #125C35
tetradic
#35125C #5C1214 #395C12 #125C5A
square
#35125C #5C1214 #395C12 #125C5A
split-complementary
#35125C #5C5A12 #145C12
monochromatic
#0F051A #180829 #35125C #521C8F #7026C2

Accessibility & contrast

On white

15.08
#35125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#35125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35125C
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35125C#FFFFFF#000000##FFFFFF
##35125C1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#2C2536
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #35125c;
/* rgb */ color: rgb(53, 18, 92);
/* oklch */ color: oklch(28.5% 0.123 300.0);
Tailwind
colors: {
  custom: {
    50: '#71548b',
    500: '#35125c',
    950: '#000000',
  },
}
SCSS
$custom: #35125c;
$custom-light: #71548b;
$custom-dark: #000000;
JSON
{
  "hex": "#35125c",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 268.378,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28472,
    "c": 0.1228,
    "h": 300
  },
  "luminance": 0.01962
}

Semantic roles & 50–950 ramp

primary
#35125C
secondary
#679435
accent
#EA3E99
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #35125C

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

Preview Lab → · Contrast checker → · Palette generator →

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