#26127D#26127D

#26127D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.163 H 279.0°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#26127D
RGBrgb(38, 18, 125)
HSLhsl(251, 75%, 28%)
HSVhsv(251, 86%, 49%)
CMYKcmyk(69.6%, 85.6%, 0%, 51%)
CIE-LABlab(17.11, 41.03, -55.84)
CIE-LCHlch(17.11, 69.29, 306.31°)
OKLaboklab(30.4% 0.0255 -0.1612)
OKLCHoklch(30.4% 0.163 279)
XYZxyz(4.7161, 2.3249, 19.5983)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26127D #697D12
analogous
#12337D #26127D #5B127D
triadic
#26127D #7D2612 #127D26
tetradic
#26127D #7D1233 #697D12 #127D5B
square
#26127D #7D1233 #697D12 #127D5B
split-complementary
#26127D #7D5B12 #337D12
monochromatic
#08041B #160A48 #26127D #361AB2 #4B29E0

Accessibility & contrast

On white

14.33
#26127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#26127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26127D
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26127D#FFFFFF#000000##FFFFFF
##26127D1.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #26127d;
/* rgb */ color: rgb(38, 18, 125);
/* oklch */ color: oklch(30.4% 0.163 279.0);
Tailwind
colors: {
  custom: {
    50: '#6f55a4',
    500: '#26127d',
    950: '#000000',
  },
}
SCSS
$custom: #26127d;
$custom-light: #6f55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#26127d",
  "rgb": {
    "r": 38,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 251.215,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30398,
    "c": 0.16325,
    "h": 279
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#26127D
secondary
#9CB338
accent
#F136CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #26127D

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

Preview Lab → · Contrast checker → · Palette generator →

#26127D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva