#271253#271253

#271253 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.110 H 291.5°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#271253
RGBrgb(39, 18, 83)
HSLhsl(259, 64%, 20%)
HSVhsv(259, 78%, 33%)
CMYKcmyk(53%, 78.3%, 0%, 67.5%)
CIE-LABlab(12.53, 27.93, -35.71)
CIE-LCHlch(12.53, 45.34, 308.03°)
OKLaboklab(25.84% 0.0404 -0.1024)
OKLCHoklch(25.84% 0.11 291.5)
XYZxyz(2.6139, 1.4884, 8.3315)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271253 #3E5312
analogous
#121D53 #271253 #481253
triadic
#271253 #532712 #125327
tetradic
#271253 #53121D #3E5312 #125348
square
#271253 #53121D #3E5312 #125348
split-complementary
#271253 #534812 #1D5312
monochromatic
#0C0519 #0F0721 #271253 #3F1D85 #5628B8

Accessibility & contrast

On white

16.18
#271253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#271253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271253
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271253#FFFFFF#000000##FFFFFF
##2712531.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002255
Deuteranopia (green-blind)
#001F52
Tritanopia (blue-blind)
#192331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271253;
/* rgb */ color: rgb(39, 18, 83);
/* oklch */ color: oklch(25.8% 0.110 291.5);
Tailwind
colors: {
  custom: {
    50: '#665284',
    500: '#271253',
    950: '#000000',
  },
}
SCSS
$custom: #271253;
$custom-light: #665284;
$custom-dark: #000000;
JSON
{
  "hex": "#271253",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 259.385,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25837,
    "c": 0.11014,
    "h": 291.5
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#271253
secondary
#708C35
accent
#E740B1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271253

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

Preview Lab → · Contrast checker → · Palette generator →

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