#271F02#271F02

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

Color values

HEX#271F02
RGBrgb(39, 31, 2)
HSLhsl(47, 90%, 8%)
HSVhsv(47, 95%, 15%)
CMYKcmyk(0%, 20.5%, 94.9%, 84.7%)
CIE-LABlab(12.06, -0.24, 17.08)
CIE-LCHlch(12.06, 17.08, 90.80°)
OKLaboklab(24.19% -0.0032 0.0465)
OKLCHoklch(24.19% 0.047 93.9)
XYZxyz(1.3377, 1.4158, 0.2602)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F02 #020A27
analogous
#270C02 #271F02 #1C2702
triadic
#271F02 #02271F #1F0227
tetradic
#271F02 #02270C #020A27 #27021C
square
#271F02 #02270C #020A27 #27021C
split-complementary
#271F02 #021C27 #0C0227
monochromatic
#1D1701 #1D1701 #271F02 #614D05 #9B7C08

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271F02#FFFFFF#000000##FFFFFF
##271F021.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)
#262103
Tritanopia (blue-blind)
#2B1B19
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271f02;
/* rgb */ color: rgb(39, 31, 2);
/* oklch */ color: oklch(24.2% 0.047 93.9);
Tailwind
colors: {
  custom: {
    50: '#625a47',
    500: '#271f02',
    950: '#000000',
  },
}
SCSS
$custom: #271f02;
$custom-light: #625a47;
$custom-dark: #000000;
JSON
{
  "hex": "#271f02",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 2
  },
  "hsl": {
    "h": 47.027,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.24186,
    "c": 0.04664,
    "h": 93.9
  },
  "luminance": 0.01416
}

Semantic roles & 50–950 ramp

primary
#271F02
secondary
#182B6C
accent
#57FF29
background
#F5F5F4
surface
#EAE9E6
border
#C6C5C2
text
#050300
muted
#797877

Preview Lab

Preview with #271F02

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

Preview Lab → · Contrast checker → · Palette generator →

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