#2A5B0F#2A5B0F

#2A5B0F is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.117 H 137.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2A5B0F
RGBrgb(42, 91, 15)
HSLhsl(99, 72%, 21%)
HSVhsv(99, 84%, 36%)
CMYKcmyk(53.8%, 0%, 83.5%, 64.3%)
CIE-LABlab(34.00, -30.94, 35.78)
CIE-LCHlch(34.00, 47.30, 130.85°)
OKLaboklab(42.08% -0.0859 0.0796)
OKLCHoklch(42.08% 0.117 137.2)
XYZxyz(4.7820, 8.0086, 1.7457)
Luminance0.0801 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5B0F #400F5B
analogous
#505B0F #2A5B0F #0F5B1A
triadic
#2A5B0F #0F2A5B #5B0F2A
tetradic
#2A5B0F #0F505B #400F5B #5B1A0F
square
#2A5B0F #0F505B #400F5B #5B1A0F
split-complementary
#2A5B0F #1A0F5B #5B0F50
monochromatic
#0C1A04 #122606 #2A5B0F #429018 #5AC420

Accessibility & contrast

On white

8.07
#2A5B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2A5B0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5B0F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5B0F#FFFFFF#000000##FFFFFF
##2A5B0F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5200
Deuteranopia (green-blind)
#584E17
Tritanopia (blue-blind)
#27574D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5b0f;
/* rgb */ color: rgb(42, 91, 15);
/* oklch */ color: oklch(42.1% 0.117 137.2);
Tailwind
colors: {
  custom: {
    50: '#698a54',
    500: '#2a5b0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a5b0f;
$custom-light: #698a54;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5b0f",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 15
  },
  "hsl": {
    "h": 98.684,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42077,
    "c": 0.11711,
    "h": 137.2
  },
  "luminance": 0.08009
}

Semantic roles & 50–950 ramp

primary
#2A5B0F
secondary
#713195
accent
#39EEAE
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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