#26117F#26117F

#26117F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.5% C 0.166 H 278.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#26117F
RGBrgb(38, 17, 127)
HSLhsl(251, 76%, 28%)
HSVhsv(251, 87%, 50%)
CMYKcmyk(70.1%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.20, 42.08, -56.96)
CIE-LCHlch(17.20, 70.82, 306.45°)
OKLaboklab(30.53% 0.0252 -0.1645)
OKLCHoklch(30.53% 0.166 278.7)
XYZxyz(4.8293, 2.3449, 20.2727)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26117F #6A7F11
analogous
#11337F #26117F #5D117F
triadic
#26117F #7F2611 #117F26
tetradic
#26117F #7F1133 #6A7F11 #117F5D
square
#26117F #7F1133 #6A7F11 #117F5D
split-complementary
#26117F #7F5D11 #337F11
monochromatic
#08041B #160A49 #26117F #3618B5 #4C28E2

Accessibility & contrast

On white

14.30
#26117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#26117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26117F
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26117F#FFFFFF#000000##FFFFFF
##26117F1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #26117f;
/* rgb */ color: rgb(38, 17, 127);
/* oklch */ color: oklch(30.5% 0.166 278.7);
Tailwind
colors: {
  custom: {
    50: '#6f54a5',
    500: '#26117f',
    950: '#000000',
  },
}
SCSS
$custom: #26117f;
$custom-light: #6f54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#26117f",
  "rgb": {
    "r": 38,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 251.455,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30534,
    "c": 0.1664,
    "h": 278.7
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#26117F
secondary
#9DB537
accent
#F335CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #26117F

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

Preview Lab → · Contrast checker → · Palette generator →

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