#2A500C#2A500C

#2A500C is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.8% C 0.104 H 134.9°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#2A500C
RGBrgb(42, 80, 12)
HSLhsl(94, 74%, 18%)
HSVhsv(94, 85%, 31%)
CMYKcmyk(47.5%, 0%, 85%, 68.6%)
CIE-LABlab(30.05, -26.18, 33.10)
CIE-LCHlch(30.05, 42.20, 128.34°)
OKLaboklab(38.82% -0.0733 0.0735)
OKLCHoklch(38.82% 0.104 134.9)
XYZxyz(3.8898, 6.2559, 1.3503)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A500C #320C50
analogous
#4C500C #2A500C #0C5010
triadic
#2A500C #0C2A50 #500C2A
tetradic
#2A500C #0C4C50 #320C50 #50100C
square
#2A500C #0C4C50 #320C50 #50100C
split-complementary
#2A500C #100C50 #500C4C
monochromatic
#0E1B04 #0E1B04 #2A500C #468514 #62BA1C

Accessibility & contrast

On white

9.33
#2A500C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2A500C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A500C
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A500C#FFFFFF#000000##FFFFFF
##2A500C1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534900
Deuteranopia (green-blind)
#4E4613
Tritanopia (blue-blind)
#294D43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a500c;
/* rgb */ color: rgb(42, 80, 12);
/* oklch */ color: oklch(38.8% 0.104 134.9);
Tailwind
colors: {
  custom: {
    50: '#688151',
    500: '#2a500c',
    950: '#000000',
  },
}
SCSS
$custom: #2a500c;
$custom-light: #688151;
$custom-dark: #000000;
JSON
{
  "hex": "#2a500c",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 12
  },
  "hsl": {
    "h": 93.529,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.38824,
    "c": 0.10382,
    "h": 134.9
  },
  "luminance": 0.06256
}

Semantic roles & 50–950 ramp

primary
#2A500C
secondary
#612C8B
accent
#37F19F
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A500C

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

Preview Lab → · Contrast checker → · Palette generator →

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