#271F03#271F03

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

Color values

HEX#271F03
RGBrgb(39, 31, 3)
HSLhsl(47, 86%, 8%)
HSVhsv(47, 92%, 15%)
CMYKcmyk(0%, 20.5%, 92.3%, 84.7%)
CIE-LABlab(12.08, -0.14, 16.69)
CIE-LCHlch(12.08, 16.69, 90.47°)
OKLaboklab(24.2% -0.0026 0.0451)
OKLCHoklch(24.2% 0.045 93.4)
XYZxyz(1.3432, 1.4180, 0.2891)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F03 #030B27
analogous
#270D03 #271F03 #1D2703
triadic
#271F03 #03271F #1F0327
tetradic
#271F03 #03270D #030B27 #27031D
square
#271F03 #03270D #030B27 #27031D
split-complementary
#271F03 #031D27 #0D0327
monochromatic
#1C1702 #1C1702 #271F03 #604C07 #99790C

Accessibility & contrast

On white

16.36
#271F03 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F03
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F03#FFFFFF#000000##FFFFFF
##271F031.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#241E01
Deuteranopia (green-blind)
#262104
Tritanopia (blue-blind)
#2B1C19
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271f03;
/* rgb */ color: rgb(39, 31, 3);
/* oklch */ color: oklch(24.2% 0.045 93.4);
Tailwind
colors: {
  custom: {
    50: '#625a48',
    500: '#271f03',
    950: '#000000',
  },
}
SCSS
$custom: #271f03;
$custom-light: #625a48;
$custom-dark: #000000;
JSON
{
  "hex": "#271f03",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 3
  },
  "hsl": {
    "h": 46.667,
    "s": 85.714,
    "l": 8.235
  },
  "oklch": {
    "l": 0.24202,
    "c": 0.04522,
    "h": 93.4
  },
  "luminance": 0.01418
}

Semantic roles & 50–950 ramp

primary
#271F03
secondary
#1B2D6B
accent
#5AFC2C
background
#F5F5F4
surface
#EAE9E6
border
#C6C5C2
text
#050300
muted
#797877

Preview Lab

Preview with #271F03

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

Preview Lab → · Contrast checker → · Palette generator →

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