#2A2A02#2A2A02

#2A2A02 is a dark, muted yellow. Relative luminance 0.022; OKLCH L 27.6% C 0.058 H 109.7°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2A2A02
RGBrgb(42, 42, 2)
HSLhsl(60, 91%, 9%)
HSVhsv(60, 95%, 16%)
CMYKcmyk(0%, 0%, 95.2%, 83.5%)
CIE-LABlab(16.27, -5.97, 22.64)
CIE-LCHlch(16.27, 23.41, 104.77°)
OKLaboklab(27.61% -0.0194 0.0544)
OKLCHoklch(27.61% 0.058 109.7)
XYZxyz(1.7938, 2.1526, 0.3784)
Luminance0.0215 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2A02 #02022A
analogous
#2A1602 #2A2A02 #162A02
triadic
#2A2A02 #022A2A #2A022A
tetradic
#2A2A02 #022A16 #02022A #2A0216
square
#2A2A02 #022A16 #02022A #2A0216
split-complementary
#2A2A02 #02162A #16022A
monochromatic
#1D1D01 #1D1D01 #2A2A02 #646405 #9F9F08

Accessibility & contrast

On white

14.68
#2A2A02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A2A02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2A02
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2A02#FFFFFF#000000##FFFFFF
##2A2A021.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2a02;
/* rgb */ color: rgb(42, 42, 2);
/* oklch */ color: oklch(27.6% 0.058 109.7);
Tailwind
colors: {
  custom: {
    50: '#656348',
    500: '#2a2a02',
    950: '#000000',
  },
}
SCSS
$custom: #2a2a02;
$custom-light: #656348;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2a02",
  "rgb": {
    "r": 42,
    "g": 42,
    "b": 2
  },
  "hsl": {
    "h": 60,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.27614,
    "c": 0.05777,
    "h": 109.7
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#2A2A02
secondary
#19196F
accent
#29FF29
background
#F6F5F4
surface
#EBEAE6
border
#C6C6C2
text
#060500
muted
#7A7977

Preview Lab

Preview with #2A2A02

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

Preview Lab → · Contrast checker → · Palette generator →

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