#2A4F0C#2A4F0C

#2A4F0C is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.5% C 0.102 H 134.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#2A4F0C
RGBrgb(42, 79, 12)
HSLhsl(93, 74%, 18%)
HSVhsv(93, 85%, 31%)
CMYKcmyk(46.8%, 0%, 84.8%, 69%)
CIE-LABlab(29.69, -25.71, 32.76)
CIE-LCHlch(29.69, 41.65, 128.13°)
OKLaboklab(38.53% -0.072 0.0728)
OKLCHoklch(38.53% 0.102 134.7)
XYZxyz(3.8171, 6.1105, 1.3261)
Luminance0.0611 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F0C #310C4F
analogous
#4B4F0C #2A4F0C #0C4F0F
triadic
#2A4F0C #0C2A4F #4F0C2A
tetradic
#2A4F0C #0C4B4F #310C4F #4F0F0C
square
#2A4F0C #0C4B4F #310C4F #4F0F0C
split-complementary
#2A4F0C #0F0C4F #4F0C4B
monochromatic
#0E1B04 #0E1B04 #2A4F0C #468414 #62B91C

Accessibility & contrast

On white

9.45
#2A4F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2A4F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F0C
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F0C#FFFFFF#000000##FFFFFF
##2A4F0C1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4D4513
Tritanopia (blue-blind)
#294C42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f0c;
/* rgb */ color: rgb(42, 79, 12);
/* oklch */ color: oklch(38.5% 0.102 134.7);
Tailwind
colors: {
  custom: {
    50: '#688051',
    500: '#2a4f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f0c;
$custom-light: #688051;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f0c",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 93.134,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38529,
    "c": 0.10241,
    "h": 134.7
  },
  "luminance": 0.06111
}

Semantic roles & 50–950 ramp

primary
#2A4F0C
secondary
#602C8B
accent
#38F09E
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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