#2A270F#2A270F

#2A270F is a dark, muted yellow. Relative luminance 0.020; OKLCH L 26.9% C 0.039 H 102.2°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#2A270F
RGBrgb(42, 39, 15)
HSLhsl(53, 47%, 11%)
HSVhsv(53, 64%, 16%)
CMYKcmyk(0%, 7.1%, 64.3%, 83.5%)
CIE-LABlab(15.37, -2.77, 15.91)
CIE-LCHlch(15.37, 16.15, 99.88°)
OKLaboklab(26.95% -0.0083 0.0382)
OKLCHoklch(26.95% 0.039 102.2)
XYZxyz(1.7666, 1.9778, 0.7405)
Luminance0.0198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A270F #0F122A
analogous
#2A190F #2A270F #1F2A0F
triadic
#2A270F #0F2A27 #270F2A
tetradic
#2A270F #0F2A19 #0F122A #2A0F1F
square
#2A270F #0F2A19 #0F122A #2A0F1F
split-complementary
#2A270F #0F1F2A #190F2A
monochromatic
#171508 #171508 #2A270F #57511F #847B2F

Accessibility & contrast

On white

15.05
#2A270F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A270F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A270F
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A270F#FFFFFF#000000##FFFFFF
##2A270F1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B260D
Deuteranopia (green-blind)
#2C2710
Tritanopia (blue-blind)
#2D2421
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a270f;
/* rgb */ color: rgb(42, 39, 15);
/* oklch */ color: oklch(26.9% 0.039 102.2);
Tailwind
colors: {
  custom: {
    50: '#64604e',
    500: '#2a270f',
    950: '#000000',
  },
}
SCSS
$custom: #2a270f;
$custom-light: #64604e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a270f",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 15
  },
  "hsl": {
    "h": 53.333,
    "s": 47.368,
    "l": 11.176
  },
  "oklch": {
    "l": 0.26948,
    "c": 0.03913,
    "h": 102.2
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#2A270F
secondary
#323763
accent
#60D751
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#050501
muted
#7A7977

Preview Lab

Preview with #2A270F

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

Preview Lab → · Contrast checker → · Palette generator →

#2A270F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva