#2A2D02#2A2D02

#2A2D02 is a dark, moderate yellow. Relative luminance 0.024; OKLCH L 28.5% C 0.062 H 113.7°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#2A2D02
RGBrgb(42, 45, 2)
HSLhsl(64, 91%, 9%)
HSVhsv(64, 96%, 18%)
CMYKcmyk(6.7%, 0%, 95.6%, 82.4%)
CIE-LABlab(17.34, -7.89, 23.95)
CIE-LCHlch(17.34, 25.22, 108.23°)
OKLaboklab(28.47% -0.0247 0.0563)
OKLCHoklch(28.47% 0.062 113.7)
XYZxyz(1.9043, 2.3734, 0.4152)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D02 #05022D
analogous
#2D1B02 #2A2D02 #152D02
triadic
#2A2D02 #022A2D #2D022A
tetradic
#2A2D02 #022D1B #05022D #2D0215
square
#2A2D02 #022D1B #05022D #2D0215
split-complementary
#2A2D02 #02152D #1B022D
monochromatic
#1B1D01 #1B1D01 #2A2D02 #616805 #97A207

Accessibility & contrast

On white

14.24
#2A2D02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A2D02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2D02
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D02#FFFFFF#000000##FFFFFF
##2A2D021.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#312B05
Tritanopia (blue-blind)
#2E2A25
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a2d02;
/* rgb */ color: rgb(42, 45, 2);
/* oklch */ color: oklch(28.5% 0.062 113.7);
Tailwind
colors: {
  custom: {
    50: '#656548',
    500: '#2a2d02',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d02;
$custom-light: #656548;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d02",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 2
  },
  "hsl": {
    "h": 64.186,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.28469,
    "c": 0.06153,
    "h": 113.7
  },
  "luminance": 0.02373
}

Semantic roles & 50–950 ramp

primary
#2A2D02
secondary
#1F1972
accent
#29FF38
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#060500
muted
#7A7A77

Preview Lab

Preview with #2A2D02

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

Preview Lab → · Contrast checker → · Palette generator →

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