#271F01#271F01

#271F01 is a very dark, muted yellow. Relative luminance 0.014; OKLCH L 24.2% C 0.048 H 94.5°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#271F01
RGBrgb(39, 31, 1)
HSLhsl(47, 95%, 8%)
HSVhsv(47, 97%, 15%)
CMYKcmyk(0%, 20.5%, 97.4%, 84.7%)
CIE-LABlab(12.05, -0.34, 17.46)
CIE-LCHlch(12.05, 17.47, 91.12°)
OKLaboklab(24.17% -0.0038 0.048)
OKLCHoklch(24.17% 0.048 94.5)
XYZxyz(1.3322, 1.4136, 0.2314)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F01 #010927
analogous
#270C01 #271F01 #1C2701
triadic
#271F01 #01271F #1F0127
tetradic
#271F01 #01270C #010927 #27011C
square
#271F01 #01270C #010927 #27011C
split-complementary
#271F01 #011C27 #0C0127
monochromatic
#1E1801 #1E1801 #271F01 #634E03 #9E7E04

Accessibility & contrast

On white

16.37
#271F01 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#271F01 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F01
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F01#FFFFFF#000000##FFFFFF
##271F011.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#241E00
Deuteranopia (green-blind)
#262102
Tritanopia (blue-blind)
#2B1B19
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271f01;
/* rgb */ color: rgb(39, 31, 1);
/* oklch */ color: oklch(24.2% 0.048 94.5);
Tailwind
colors: {
  custom: {
    50: '#625a47',
    500: '#271f01',
    950: '#000000',
  },
}
SCSS
$custom: #271f01;
$custom-light: #625a47;
$custom-dark: #000000;
JSON
{
  "hex": "#271f01",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 1
  },
  "hsl": {
    "h": 47.368,
    "s": 95,
    "l": 7.843
  },
  "oklch": {
    "l": 0.2417,
    "c": 0.0481,
    "h": 94.5
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#271F01
secondary
#16296E
accent
#56FF29
background
#F5F5F3
surface
#EAE9E5
border
#C6C5C1
text
#050300
muted
#797877

Preview Lab

Preview with #271F01

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

Preview Lab → · Contrast checker → · Palette generator →

#271F01 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva