#271E02#271E02

#271E02 is a very dark, muted yellow. Relative luminance 0.014; OKLCH L 23.9% C 0.046 H 91.5°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#271E02
RGBrgb(39, 30, 2)
HSLhsl(45, 90%, 8%)
HSVhsv(45, 95%, 15%)
CMYKcmyk(0%, 23.1%, 94.9%, 84.7%)
CIE-LABlab(11.72, 0.47, 16.60)
CIE-LCHlch(11.72, 16.61, 88.39°)
OKLaboklab(23.92% -0.0012 0.0459)
OKLCHoklch(23.92% 0.046 91.5)
XYZxyz(1.3120, 1.3643, 0.2517)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E02 #020B27
analogous
#270B02 #271E02 #1D2702
triadic
#271E02 #02271E #1E0227
tetradic
#271E02 #02270B #020B27 #27021D
square
#271E02 #02270B #020B27 #27021D
split-complementary
#271E02 #021D27 #0B0227
monochromatic
#1D1601 #1D1601 #271E02 #614B05 #9B7808

Accessibility & contrast

On white

16.50
#271E02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#271E02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271E02
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E02#FFFFFF#000000##FFFFFF
##271E021.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231D00
Deuteranopia (green-blind)
#252003
Tritanopia (blue-blind)
#2B1A18
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #271e02;
/* rgb */ color: rgb(39, 30, 2);
/* oklch */ color: oklch(23.9% 0.046 91.5);
Tailwind
colors: {
  custom: {
    50: '#625947',
    500: '#271e02',
    950: '#000000',
  },
}
SCSS
$custom: #271e02;
$custom-light: #625947;
$custom-dark: #000000;
JSON
{
  "hex": "#271e02",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 2
  },
  "hsl": {
    "h": 45.405,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.23915,
    "c": 0.04591,
    "h": 91.5
  },
  "luminance": 0.01364
}

Semantic roles & 50–950 ramp

primary
#271E02
secondary
#182D6C
accent
#5DFF29
background
#F5F5F4
surface
#EAE9E6
border
#C6C5C2
text
#050300
muted
#797877

Preview Lab

Preview with #271E02

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

Preview Lab → · Contrast checker → · Palette generator →

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