#271275#271275

#271275 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.153 H 281.2°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#271275
RGBrgb(39, 18, 117)
HSLhsl(253, 73%, 26%)
HSVhsv(253, 85%, 46%)
CMYKcmyk(66.7%, 84.6%, 0%, 54.1%)
CIE-LABlab(16.25, 38.66, -52.13)
CIE-LCHlch(16.25, 64.90, 306.56°)
OKLaboklab(29.55% 0.0299 -0.1504)
OKLCHoklch(29.55% 0.153 281.2)
XYZxyz(4.2629, 2.1480, 17.0161)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271275 #607512
analogous
#122F75 #271275 #591275
triadic
#271275 #752712 #127527
tetradic
#271275 #75122F #607512 #127559
square
#271275 #75122F #607512 #127559
split-complementary
#271275 #755912 #2F7512
monochromatic
#09041B #150A40 #271275 #391AAA #4B24DD

Accessibility & contrast

On white

14.69
#271275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#271275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271275
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271275#FFFFFF#000000##FFFFFF
##2712751.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271275;
/* rgb */ color: rgb(39, 18, 117);
/* oklch */ color: oklch(29.5% 0.153 281.2);
Tailwind
colors: {
  custom: {
    50: '#6d549e',
    500: '#271275',
    950: '#000000',
  },
}
SCSS
$custom: #271275;
$custom-light: #6d549e;
$custom-dark: #000000;
JSON
{
  "hex": "#271275",
  "rgb": {
    "r": 39,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 252.727,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29546,
    "c": 0.15337,
    "h": 281.2
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

primary
#271275
secondary
#93AC37
accent
#F038C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271275

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

Preview Lab → · Contrast checker → · Palette generator →

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