#271263#271263

#271263 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.131 H 285.9°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#271263
RGBrgb(39, 18, 99)
HSLhsl(256, 69%, 23%)
HSVhsv(256, 82%, 39%)
CMYKcmyk(60.6%, 81.8%, 0%, 61.2%)
CIE-LABlab(14.20, 33.02, -43.74)
CIE-LCHlch(14.20, 54.80, 307.05°)
OKLaboklab(27.52% 0.0359 -0.1259)
OKLCHoklch(27.52% 0.131 285.9)
XYZxyz(3.3045, 1.7646, 11.9684)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271263 #4E6312
analogous
#122563 #271263 #501263
triadic
#271263 #632712 #126327
tetradic
#271263 #631225 #4E6312 #126350
square
#271263 #631225 #4E6312 #126350
split-complementary
#271263 #635012 #256312
monochromatic
#0A051A #13092F #271263 #3B1B97 #5025CB

Accessibility & contrast

On white

15.52
#271263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271263
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271263#FFFFFF#000000##FFFFFF
##2712631.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002665
Deuteranopia (green-blind)
#002262
Tritanopia (blue-blind)
#09293A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271263;
/* rgb */ color: rgb(39, 18, 99);
/* oklch */ color: oklch(27.5% 0.131 285.9);
Tailwind
colors: {
  custom: {
    50: '#6a5390',
    500: '#271263',
    950: '#000000',
  },
}
SCSS
$custom: #271263;
$custom-light: #6a5390;
$custom-dark: #000000;
JSON
{
  "hex": "#271263",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 255.556,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27517,
    "c": 0.13096,
    "h": 285.9
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#271263
secondary
#819B36
accent
#EC3CBE
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020D
muted
#7A787D

Preview Lab

Preview with #271263

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

Preview Lab → · Contrast checker → · Palette generator →

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