#2A2906#2A2906

#2A2906 is a dark, muted yellow. Relative luminance 0.021; OKLCH L 27.4% C 0.052 H 107.8°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#2A2906
RGBrgb(42, 41, 6)
HSLhsl(58, 75%, 9%)
HSVhsv(58, 86%, 16%)
CMYKcmyk(0%, 2.4%, 85.7%, 83.5%)
CIE-LABlab(15.96, -4.96, 20.62)
CIE-LCHlch(15.96, 21.21, 103.52°)
OKLaboklab(27.38% -0.0159 0.0495)
OKLCHoklch(27.38% 0.052 107.8)
XYZxyz(1.7807, 2.0913, 0.4821)
Luminance0.0209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2906 #06072A
analogous
#2A1706 #2A2906 #192A06
triadic
#2A2906 #062A29 #29062A
tetradic
#2A2906 #062A17 #06072A #2A0619
square
#2A2906 #062A17 #06072A #2A0619
split-complementary
#2A2906 #06192A #17062A
monochromatic
#1B1A04 #1B1A04 #2A2906 #605D0E #959215

Accessibility & contrast

On white

14.81
#2A2906 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A2906 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2906
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2906#FFFFFF#000000##FFFFFF
##2A29061.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2703
Deuteranopia (green-blind)
#2E2808
Tritanopia (blue-blind)
#2E2622
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a2906;
/* rgb */ color: rgb(42, 41, 6);
/* oklch */ color: oklch(27.4% 0.052 107.8);
Tailwind
colors: {
  custom: {
    50: '#656249',
    500: '#2a2906',
    950: '#000000',
  },
}
SCSS
$custom: #2a2906;
$custom-light: #656249;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2906",
  "rgb": {
    "r": 42,
    "g": 41,
    "b": 6
  },
  "hsl": {
    "h": 58.333,
    "s": 75,
    "l": 9.412
  },
  "oklch": {
    "l": 0.27381,
    "c": 0.05195,
    "h": 107.8
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#2A2906
secondary
#21236B
accent
#3BF236
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#060501
muted
#7A7977

Preview Lab

Preview with #2A2906

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

Preview Lab → · Contrast checker → · Palette generator →

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