#261271#261271

#261271 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.149 H 281.5°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#261271
RGBrgb(38, 18, 113)
HSLhsl(253, 73%, 26%)
HSVhsv(253, 84%, 44%)
CMYKcmyk(66.4%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.68, 37.31, -50.49)
CIE-LCHlch(15.68, 62.77, 306.46°)
OKLaboklab(28.99% 0.0296 -0.1457)
OKLCHoklch(28.99% 0.149 281.5)
XYZxyz(3.9953, 2.0366, 15.8022)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#261271 #5D7112
analogous
#122D71 #261271 #551271
triadic
#261271 #712612 #127126
tetradic
#261271 #71122D #5D7112 #127155
square
#261271 #71122D #5D7112 #127155
split-complementary
#261271 #715512 #2D7112
monochromatic
#09041A #140A3C #261271 #381AA6 #4A23DB

Accessibility & contrast

On white

14.92
#261271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#261271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #261271
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##261271#FFFFFF#000000##FFFFFF
##2612711.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #261271;
/* rgb */ color: rgb(38, 18, 113);
/* oklch */ color: oklch(29.0% 0.149 281.5);
Tailwind
colors: {
  custom: {
    50: '#6c549b',
    500: '#261271',
    950: '#000000',
  },
}
SCSS
$custom: #261271;
$custom-light: #6c549b;
$custom-dark: #000000;
JSON
{
  "hex": "#261271",
  "rgb": {
    "r": 38,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 252.632,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28992,
    "c": 0.14865,
    "h": 281.5
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#261271
secondary
#90A837
accent
#EF39C9
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #261271

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

Preview Lab → · Contrast checker → · Palette generator →

#261271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva