#271252#271252

#271252 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.109 H 292.0°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#271252
RGBrgb(39, 18, 82)
HSLhsl(260, 64%, 20%)
HSVhsv(260, 78%, 32%)
CMYKcmyk(52.4%, 78%, 0%, 67.8%)
CIE-LABlab(12.44, 27.61, -35.19)
CIE-LCHlch(12.44, 44.73, 308.12°)
OKLaboklab(25.74% 0.0407 -0.1009)
OKLCHoklch(25.74% 0.109 292)
XYZxyz(2.5756, 1.4731, 8.1296)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271252 #3D5212
analogous
#121D52 #271252 #471252
triadic
#271252 #522712 #125227
tetradic
#271252 #52121D #3D5212 #125247
square
#271252 #52121D #3D5212 #125247
split-complementary
#271252 #524712 #1D5212
monochromatic
#0C0619 #0F0720 #271252 #3F1D84 #5728B6

Accessibility & contrast

On white

16.22
#271252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271252
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271252#FFFFFF#000000##FFFFFF
##2712521.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#192330
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271252;
/* rgb */ color: rgb(39, 18, 82);
/* oklch */ color: oklch(25.7% 0.109 292.0);
Tailwind
colors: {
  custom: {
    50: '#665283',
    500: '#271252',
    950: '#000000',
  },
}
SCSS
$custom: #271252;
$custom-light: #665283;
$custom-dark: #000000;
JSON
{
  "hex": "#271252",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 259.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25737,
    "c": 0.10881,
    "h": 292
  },
  "luminance": 0.01473
}

Semantic roles & 50–950 ramp

primary
#271252
secondary
#6F8B35
accent
#E741B0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271252

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

Preview Lab → · Contrast checker → · Palette generator →

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