#2A2A12#2A2A12

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

Color values

HEX#2A2A12
RGBrgb(42, 42, 18)
HSLhsl(60, 40%, 12%)
HSVhsv(60, 57%, 16%)
CMYKcmyk(0%, 0%, 57.1%, 83.5%)
CIE-LABlab(16.46, -4.42, 15.58)
CIE-LCHlch(16.46, 16.19, 105.85°)
OKLaboklab(27.83% -0.0126 0.0373)
OKLCHoklch(27.83% 0.039 108.7)
XYZxyz(1.8920, 2.1919, 0.8956)
Luminance0.0219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A12 #12122A
analogous
#2A1E12 #2A2A12 #1E2A12
triadic
#2A2A12 #122A2A #2A122A
tetradic
#2A2A12 #122A1E #12122A #2A121E
square
#2A2A12 #122A1E #12122A #2A121E
split-complementary
#2A2A12 #121E2A #1E122A
monochromatic
#151509 #151509 #2A2A12 #555524 #808037

Accessibility & contrast

On white

14.60
#2A2A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2A12
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A12#FFFFFF#000000##FFFFFF
##2A2A121.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2a12;
/* rgb */ color: rgb(42, 42, 18);
/* oklch */ color: oklch(27.8% 0.039 108.7);
Tailwind
colors: {
  custom: {
    50: '#646350',
    500: '#2a2a12',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a12;
$custom-light: #646350;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a12",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 40,
    "l": 11.765
  },
  "oklch": {
    "l": 0.27832,
    "c": 0.03934,
    "h": 108.7
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#2A2A12
secondary
#373761
accent
#58D058
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#050502
muted
#7A7978

Preview Lab

Preview with #2A2A12

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

Preview Lab → · Contrast checker → · Palette generator →

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