#26157A#26157A

#26157A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.157 H 279.2°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#26157A
RGBrgb(38, 21, 122)
HSLhsl(250, 71%, 28%)
HSVhsv(250, 83%, 48%)
CMYKcmyk(68.9%, 82.8%, 0%, 52.2%)
CIE-LABlab(17.24, 38.66, -53.70)
CIE-LCHlch(17.24, 66.17, 305.75°)
OKLaboklab(30.39% 0.025 -0.1551)
OKLCHoklch(30.39% 0.157 279.2)
XYZxyz(4.5792, 2.3532, 18.6215)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26157A #697A15
analogous
#15367A #26157A #58157A
triadic
#26157A #7A2615 #157A26
tetradic
#26157A #7A1536 #697A15 #157A58
square
#26157A #7A1536 #697A15 #157A58
split-complementary
#26157A #7A5815 #367A15
monochromatic
#08041A #160C46 #26157A #361EAE #4B2EDB

Accessibility & contrast

On white

14.28
#26157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#26157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26157A
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26157A#FFFFFF#000000##FFFFFF
##26157A1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #26157a;
/* rgb */ color: rgb(38, 21, 122);
/* oklch */ color: oklch(30.4% 0.157 279.2);
Tailwind
colors: {
  custom: {
    50: '#6e56a2',
    500: '#26157a',
    950: '#000000',
  },
}
SCSS
$custom: #26157a;
$custom-light: #6e56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#26157a",
  "rgb": {
    "r": 38,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 250.099,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30385,
    "c": 0.15709,
    "h": 279.2
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#26157A
secondary
#9CAF3B
accent
#ED3ACF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #26157A

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

Preview Lab → · Contrast checker → · Palette generator →

#26157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva