#2A2C02#2A2C02

#2A2C02 is a dark, moderate yellow. Relative luminance 0.023; OKLCH L 28.2% C 0.060 H 112.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2A2C02
RGBrgb(42, 44, 2)
HSLhsl(63, 91%, 9%)
HSVhsv(63, 95%, 17%)
CMYKcmyk(4.5%, 0%, 95.5%, 82.7%)
CIE-LABlab(16.98, -7.25, 23.51)
CIE-LCHlch(16.98, 24.61, 107.14°)
OKLaboklab(28.18% -0.023 0.0557)
OKLCHoklch(28.18% 0.06 112.4)
XYZxyz(1.8666, 2.2980, 0.4027)
Luminance0.0230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2C02 #04022C
analogous
#2C1902 #2A2C02 #152C02
triadic
#2A2C02 #022A2C #2C022A
tetradic
#2A2C02 #022C19 #04022C #2C0215
square
#2A2C02 #022C19 #04022C #2C0215
split-complementary
#2A2C02 #02152C #19022C
monochromatic
#1C1D01 #1C1D01 #2A2C02 #626705 #9AA107

Accessibility & contrast

On white

14.39
#2A2C02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A2C02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2C02
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2C02#FFFFFF#000000##FFFFFF
##2A2C021.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#302A05
Tritanopia (blue-blind)
#2E2924
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a2c02;
/* rgb */ color: rgb(42, 44, 2);
/* oklch */ color: oklch(28.2% 0.060 112.4);
Tailwind
colors: {
  custom: {
    50: '#656448',
    500: '#2a2c02',
    950: '#000000',
  },
}
SCSS
$custom: #2a2c02;
$custom-light: #656448;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2c02",
  "rgb": {
    "r": 42,
    "g": 44,
    "b": 2
  },
  "hsl": {
    "h": 62.857,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.28183,
    "c": 0.06025,
    "h": 112.4
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#2A2C02
secondary
#1D1971
accent
#29FF33
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#060500
muted
#7A7A77

Preview Lab

Preview with #2A2C02

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

Preview Lab → · Contrast checker → · Palette generator →

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