#2A4C11#2A4C11

#2A4C11 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.7% C 0.095 H 134.8°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2A4C11
RGBrgb(42, 76, 17)
HSLhsl(95, 63%, 18%)
HSVhsv(95, 78%, 30%)
CMYKcmyk(44.7%, 0%, 77.6%, 70.2%)
CIE-LABlab(28.65, -23.90, 29.69)
CIE-LCHlch(28.65, 38.12, 128.83°)
OKLaboklab(37.69% -0.0667 0.0672)
OKLCHoklch(37.69% 0.095 134.8)
XYZxyz(3.6404, 5.7014, 1.4389)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C11 #33114C
analogous
#474C11 #2A4C11 #114C15
triadic
#2A4C11 #112A4C #4C112A
tetradic
#2A4C11 #11474C #33114C #4C1511
square
#2A4C11 #11474C #33114C #4C1511
split-complementary
#2A4C11 #15114C #4C1147
monochromatic
#0E1906 #0E1A06 #2A4C11 #467E1C #61B027

Accessibility & contrast

On white

9.81
#2A4C11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A4C11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C11
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C11#FFFFFF#000000##FFFFFF
##2A4C111.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4508
Deuteranopia (green-blind)
#4B4316
Tritanopia (blue-blind)
#294940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4c11;
/* rgb */ color: rgb(42, 76, 17);
/* oklch */ color: oklch(37.7% 0.095 134.8);
Tailwind
colors: {
  custom: {
    50: '#677e53',
    500: '#2a4c11',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c11;
$custom-light: #677e53;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c11",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 17
  },
  "hsl": {
    "h": 94.576,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.37686,
    "c": 0.09472,
    "h": 134.8
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#2A4C11
secondary
#633385
accent
#41E6A0
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4C11

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

Preview Lab → · Contrast checker → · Palette generator →

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