#2A270D#2A270D

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

Color values

HEX#2A270D
RGBrgb(42, 39, 13)
HSLhsl(54, 53%, 11%)
HSVhsv(54, 69%, 16%)
CMYKcmyk(0%, 7.1%, 69%, 83.5%)
CIE-LABlab(15.34, -2.99, 16.88)
CIE-LCHlch(15.34, 17.14, 100.03°)
OKLaboklab(26.92% -0.0092 0.0406)
OKLCHoklch(26.92% 0.042 102.8)
XYZxyz(1.7531, 1.9724, 0.6691)
Luminance0.0197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A270D #0D102A
analogous
#2A180D #2A270D #1E2A0D
triadic
#2A270D #0D2A27 #270D2A
tetradic
#2A270D #0D2A18 #0D102A #2A0D1E
square
#2A270D #0D2A18 #0D102A #2A0D1E
split-complementary
#2A270D #0D1E2A #180D2A
monochromatic
#171607 #171607 #2A270D #59521B #877E2A

Accessibility & contrast

On white

15.06
#2A270D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A270D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A270D
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A270D#FFFFFF#000000##FFFFFF
##2A270D1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B260A
Deuteranopia (green-blind)
#2C270E
Tritanopia (blue-blind)
#2E2421
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a270d;
/* rgb */ color: rgb(42, 39, 13);
/* oklch */ color: oklch(26.9% 0.042 102.8);
Tailwind
colors: {
  custom: {
    50: '#64604d',
    500: '#2a270d',
    950: '#000000',
  },
}
SCSS
$custom: #2a270d;
$custom-light: #64604d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a270d",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 13
  },
  "hsl": {
    "h": 53.793,
    "s": 52.727,
    "l": 10.784
  },
  "oklch": {
    "l": 0.26916,
    "c": 0.04163,
    "h": 102.8
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#2A270D
secondary
#2E3464
accent
#5BDC4C
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#050501
muted
#7A7977

Preview Lab

Preview with #2A270D

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

Preview Lab → · Contrast checker → · Palette generator →

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