#2A4C12#2A4C12

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

Color values

HEX#2A4C12
RGBrgb(42, 76, 18)
HSLhsl(95, 62%, 18%)
HSVhsv(95, 76%, 30%)
CMYKcmyk(44.7%, 0%, 76.3%, 70.2%)
CIE-LABlab(28.65, -23.81, 29.25)
CIE-LCHlch(28.65, 37.72, 129.15°)
OKLaboklab(37.7% -0.0664 0.0665)
OKLCHoklch(37.7% 0.094 135)
XYZxyz(3.6484, 5.7046, 1.4810)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C12 #34124C
analogous
#474C12 #2A4C12 #124C17
triadic
#2A4C12 #122A4C #4C122A
tetradic
#2A4C12 #12474C #34124C #4C1712
square
#2A4C12 #12474C #34124C #4C1712
split-complementary
#2A4C12 #17124C #4C1247
monochromatic
#0E1906 #0F1B06 #2A4C12 #457D1E #61AF29

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4C12#FFFFFF#000000##FFFFFF
##2A4C121.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)
#4F4509
Deuteranopia (green-blind)
#4A4317
Tritanopia (blue-blind)
#294940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4c12;
/* rgb */ color: rgb(42, 76, 18);
/* oklch */ color: oklch(37.7% 0.094 135.0);
Tailwind
colors: {
  custom: {
    50: '#677e54',
    500: '#2a4c12',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c12;
$custom-light: #677e54;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c12",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 95.172,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.37695,
    "c": 0.09395,
    "h": 135
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

primary
#2A4C12
secondary
#643585
accent
#43E5A2
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4C12

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

Preview Lab → · Contrast checker → · Palette generator →

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