#26126F#26126F

#26126F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.146 H 282.0°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#26126F
RGBrgb(38, 18, 111)
HSLhsl(253, 72%, 25%)
HSVhsv(253, 84%, 44%)
CMYKcmyk(65.8%, 83.8%, 0%, 56.5%)
CIE-LABlab(15.45, 36.68, -49.57)
CIE-LCHlch(15.45, 61.66, 306.50°)
OKLaboklab(28.76% 0.0303 -0.143)
OKLCHoklch(28.76% 0.146 282)
XYZxyz(3.8840, 1.9921, 15.2157)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26126F #5B6F12
analogous
#122D6F #26126F #54126F
triadic
#26126F #6F2612 #126F26
tetradic
#26126F #6F122D #5B6F12 #126F54
square
#26126F #6F122D #5B6F12 #126F54
split-complementary
#26126F #6F5412 #2D6F12
monochromatic
#09041A #14093A #26126F #381BA4 #4A23D8

Accessibility & contrast

On white

15.02
#26126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#26126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26126F
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26126F#FFFFFF#000000##FFFFFF
##26126F1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #26126f;
/* rgb */ color: rgb(38, 18, 111);
/* oklch */ color: oklch(28.8% 0.146 282.0);
Tailwind
colors: {
  custom: {
    50: '#6c5499',
    500: '#26126f',
    950: '#000000',
  },
}
SCSS
$custom: #26126f;
$custom-light: #6c5499;
$custom-dark: #000000;
JSON
{
  "hex": "#26126f",
  "rgb": {
    "r": 38,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 252.903,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28762,
    "c": 0.14618,
    "h": 282
  },
  "luminance": 0.01992
}

Semantic roles & 50–950 ramp

primary
#26126F
secondary
#8EA637
accent
#EF39C8
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #26126F

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

Preview Lab → · Contrast checker → · Palette generator →

#26126F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva