#2A2702#2A2702

#2A2702 is a dark, muted yellow. Relative luminance 0.019; OKLCH L 26.8% C 0.054 H 104.9°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2A2702
RGBrgb(42, 39, 2)
HSLhsl(56, 91%, 9%)
HSVhsv(56, 95%, 16%)
CMYKcmyk(0%, 7.1%, 95.2%, 83.5%)
CIE-LABlab(15.21, -3.99, 21.30)
CIE-LCHlch(15.21, 21.67, 100.61°)
OKLaboklab(26.77% -0.0139 0.0525)
OKLCHoklch(26.77% 0.054 104.9)
XYZxyz(1.6914, 1.9477, 0.3443)
Luminance0.0195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2702 #02052A
analogous
#2A1302 #2A2702 #192A02
triadic
#2A2702 #022A27 #27022A
tetradic
#2A2702 #022A13 #02052A #2A0219
square
#2A2702 #022A13 #02052A #2A0219
split-complementary
#2A2702 #02192A #13022A
monochromatic
#1D1B01 #1D1B01 #2A2702 #645D05 #9F9308

Accessibility & contrast

On white

15.11
#2A2702 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2702
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2702#FFFFFF#000000##FFFFFF
##2A27021.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2500
Deuteranopia (green-blind)
#2D2704
Tritanopia (blue-blind)
#2E2320
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a2702;
/* rgb */ color: rgb(42, 39, 2);
/* oklch */ color: oklch(26.8% 0.054 104.9);
Tailwind
colors: {
  custom: {
    50: '#656047',
    500: '#2a2702',
    950: '#000000',
  },
}
SCSS
$custom: #2a2702;
$custom-light: #656047;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2702",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 2
  },
  "hsl": {
    "h": 55.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.26769,
    "c": 0.05429,
    "h": 104.9
  },
  "luminance": 0.01948
}

Semantic roles & 50–950 ramp

primary
#2A2702
secondary
#191F6F
accent
#39FF29
background
#F6F5F4
surface
#EBE9E6
border
#C6C5C2
text
#060500
muted
#7A7977

Preview Lab

Preview with #2A2702

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

Preview Lab → · Contrast checker → · Palette generator →

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