#2A2A0F#2A2A0F

#2A2A0F is a dark, muted yellow. Relative luminance 0.022; OKLCH L 27.8% C 0.043 H 108.9°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#2A2A0F
RGBrgb(42, 42, 15)
HSLhsl(60, 47%, 11%)
HSVhsv(60, 64%, 16%)
CMYKcmyk(0%, 0%, 64.3%, 83.5%)
CIE-LABlab(16.42, -4.77, 17.23)
CIE-LCHlch(16.42, 17.88, 105.49°)
OKLaboklab(27.78% -0.014 0.0409)
OKLCHoklch(27.78% 0.043 108.9)
XYZxyz(1.8691, 2.1827, 0.7747)
Luminance0.0218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A0F #0F0F2A
analogous
#2A1C0F #2A2A0F #1C2A0F
triadic
#2A2A0F #0F2A2A #2A0F2A
tetradic
#2A2A0F #0F2A1C #0F0F2A #2A0F1C
square
#2A2A0F #0F2A1C #0F0F2A #2A0F1C
split-complementary
#2A2A0F #0F1C2A #1C0F2A
monochromatic
#171708 #171708 #2A2A0F #57571F #84842F

Accessibility & contrast

On white

14.62
#2A2A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A2A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A0F
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A0F#FFFFFF#000000##FFFFFF
##2A2A0F1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E280C
Deuteranopia (green-blind)
#2E2910
Tritanopia (blue-blind)
#2D2724
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a2a0f;
/* rgb */ color: rgb(42, 42, 15);
/* oklch */ color: oklch(27.8% 0.043 108.9);
Tailwind
colors: {
  custom: {
    50: '#64634e',
    500: '#2a2a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a0f;
$custom-light: #64634e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a0f",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 15
  },
  "hsl": {
    "h": 60,
    "s": 47.368,
    "l": 11.176
  },
  "oklch": {
    "l": 0.27781,
    "c": 0.04326,
    "h": 108.9
  },
  "luminance": 0.02183
}

Semantic roles & 50–950 ramp

primary
#2A2A0F
secondary
#323263
accent
#51D751
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#050501
muted
#7A7977

Preview Lab

Preview with #2A2A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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