#2A2802#2A2802

#2A2802 is a dark, muted yellow. Relative luminance 0.020; OKLCH L 27.0% C 0.055 H 106.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2A2802
RGBrgb(42, 40, 2)
HSLhsl(57, 91%, 9%)
HSVhsv(57, 95%, 16%)
CMYKcmyk(0%, 4.8%, 95.2%, 83.5%)
CIE-LABlab(15.56, -4.65, 21.75)
CIE-LCHlch(15.56, 22.24, 102.08°)
OKLaboklab(27.05% -0.0158 0.0531)
OKLCHoklch(27.05% 0.055 106.6)
XYZxyz(1.7247, 2.0143, 0.3554)
Luminance0.0201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2802 #02042A
analogous
#2A1402 #2A2802 #182A02
triadic
#2A2802 #022A28 #28022A
tetradic
#2A2802 #022A14 #02042A #2A0218
square
#2A2802 #022A14 #02042A #2A0218
split-complementary
#2A2802 #02182A #14022A
monochromatic
#1D1C01 #1D1C01 #2A2802 #646005 #9F9708

Accessibility & contrast

On white

14.97
#2A2802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2802
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2802#FFFFFF#000000##FFFFFF
##2A28021.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2600
Deuteranopia (green-blind)
#2D2804
Tritanopia (blue-blind)
#2E2421
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a2802;
/* rgb */ color: rgb(42, 40, 2);
/* oklch */ color: oklch(27.0% 0.055 106.6);
Tailwind
colors: {
  custom: {
    50: '#656147',
    500: '#2a2802',
    950: '#000000',
  },
}
SCSS
$custom: #2a2802;
$custom-light: #656147;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2802",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 2
  },
  "hsl": {
    "h": 57,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.27049,
    "c": 0.05541,
    "h": 106.6
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#2A2802
secondary
#191D6F
accent
#34FF29
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#060500
muted
#7A7977

Preview Lab

Preview with #2A2802

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

Preview Lab → · Contrast checker → · Palette generator →

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