#2A5C0F#2A5C0F

#2A5C0F is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.4% C 0.118 H 137.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2A5C0F
RGBrgb(42, 92, 15)
HSLhsl(99, 72%, 21%)
HSVhsv(99, 84%, 36%)
CMYKcmyk(54.3%, 0%, 83.7%, 63.9%)
CIE-LABlab(34.36, -31.37, 36.12)
CIE-LCHlch(34.36, 47.84, 130.98°)
OKLaboklab(42.37% -0.087 0.0803)
OKLCHoklch(42.37% 0.118 137.3)
XYZxyz(4.8681, 8.1807, 1.7744)
Luminance0.0818 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5C0F #410F5C
analogous
#505C0F #2A5C0F #0F5C1A
triadic
#2A5C0F #0F2A5C #5C0F2A
tetradic
#2A5C0F #0F505C #410F5C #5C1A0F
square
#2A5C0F #0F505C #410F5C #5C1A0F
split-complementary
#2A5C0F #1A0F5C #5C0F50
monochromatic
#0C1A04 #122706 #2A5C0F #429118 #5AC520

Accessibility & contrast

On white

7.97
#2A5C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A5C0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5C0F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5C0F#FFFFFF#000000##FFFFFF
##2A5C0F1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#594F18
Tritanopia (blue-blind)
#27584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5c0f;
/* rgb */ color: rgb(42, 92, 15);
/* oklch */ color: oklch(42.4% 0.118 137.3);
Tailwind
colors: {
  custom: {
    50: '#6a8b54',
    500: '#2a5c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a5c0f;
$custom-light: #6a8b54;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5c0f",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 15
  },
  "hsl": {
    "h": 98.961,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.4237,
    "c": 0.11844,
    "h": 137.3
  },
  "luminance": 0.08181
}

Semantic roles & 50–950 ramp

primary
#2A5C0F
secondary
#723195
accent
#39EFAF
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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