#2A4813#2A4813

#2A4813 is a dark, moderate yellow-green. Relative luminance 0.052; OKLCH L 36.5% C 0.087 H 134.2°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#2A4813
RGBrgb(42, 72, 19)
HSLhsl(94, 58%, 18%)
HSVhsv(94, 74%, 28%)
CMYKcmyk(41.7%, 0%, 73.6%, 71.8%)
CIE-LABlab(27.22, -21.73, 27.27)
CIE-LCHlch(27.22, 34.87, 128.55°)
OKLaboklab(36.53% -0.0607 0.0625)
OKLCHoklch(36.53% 0.087 134.2)
XYZxyz(3.3897, 5.1738, 1.4360)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4813 #311348
analogous
#444813 #2A4813 #134816
triadic
#2A4813 #132A48 #48132A
tetradic
#2A4813 #134448 #311348 #481613
square
#2A4813 #134448 #311348 #481613
split-complementary
#2A4813 #161348 #481344
monochromatic
#0E1806 #0E1806 #2A4813 #467820 #62A92D

Accessibility & contrast

On white

10.32
#2A4813 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2A4813 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4813
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4813#FFFFFF#000000##FFFFFF
##2A48131.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B420C
Deuteranopia (green-blind)
#473F17
Tritanopia (blue-blind)
#2A453D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a4813;
/* rgb */ color: rgb(42, 72, 19);
/* oklch */ color: oklch(36.5% 0.087 134.2);
Tailwind
colors: {
  custom: {
    50: '#667b54',
    500: '#2a4813',
    950: '#000000',
  },
}
SCSS
$custom: #2a4813;
$custom-light: #667b54;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4813",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 19
  },
  "hsl": {
    "h": 93.962,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36529,
    "c": 0.08708,
    "h": 134.2
  },
  "luminance": 0.05174
}

Semantic roles & 50–950 ramp

primary
#2A4813
secondary
#603681
accent
#46E19E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060903
muted
#7A7B78

Preview Lab

Preview with #2A4813

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

Preview Lab → · Contrast checker → · Palette generator →

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