#271F07#271F07

#271F07 is a very dark, muted yellow. Relative luminance 0.014; OKLCH L 24.3% C 0.040 H 90.8°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#271F07
RGBrgb(39, 31, 7)
HSLhsl(45, 70%, 9%)
HSVhsv(45, 82%, 15%)
CMYKcmyk(0%, 20.5%, 82.1%, 84.7%)
CIE-LABlab(12.13, 0.27, 15.14)
CIE-LCHlch(12.13, 15.14, 88.98°)
OKLaboklab(24.27% -0.0006 0.0399)
OKLCHoklch(24.27% 0.04 90.8)
XYZxyz(1.3651, 1.4267, 0.4045)
Luminance0.0143 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F07 #070F27
analogous
#270F07 #271F07 #1F2707
triadic
#271F07 #07271F #1F0727
tetradic
#271F07 #07270F #070F27 #27071F
square
#271F07 #07270F #070F27 #27071F
split-complementary
#271F07 #071F27 #0F0727
monochromatic
#1A1505 #1A1505 #271F07 #5B4810 #8F711A

Accessibility & contrast

On white

16.34
#271F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271F07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F07
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F07#FFFFFF#000000##FFFFFF
##271F071.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231E05
Deuteranopia (green-blind)
#252108
Tritanopia (blue-blind)
#2B1C1A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271f07;
/* rgb */ color: rgb(39, 31, 7);
/* oklch */ color: oklch(24.3% 0.040 90.8);
Tailwind
colors: {
  custom: {
    50: '#625a4a',
    500: '#271f07',
    950: '#000000',
  },
}
SCSS
$custom: #271f07;
$custom-light: #625a4a;
$custom-dark: #000000;
JSON
{
  "hex": "#271f07",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 7
  },
  "hsl": {
    "h": 45,
    "s": 69.565,
    "l": 9.02
  },
  "oklch": {
    "l": 0.24266,
    "c": 0.03988,
    "h": 90.8
  },
  "luminance": 0.01427
}

Semantic roles & 50–950 ramp

primary
#271F07
secondary
#233466
accent
#68EC3B
background
#F5F5F4
surface
#EAE9E7
border
#C6C5C3
text
#050301
muted
#797877

Preview Lab

Preview with #271F07

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

Preview Lab → · Contrast checker → · Palette generator →

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