#2A5F0F#2A5F0F

#2A5F0F is a dark, vivid yellow-green. Relative luminance 0.087; OKLCH L 43.2% C 0.122 H 137.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2A5F0F
RGBrgb(42, 95, 15)
HSLhsl(100, 73%, 22%)
HSVhsv(100, 84%, 37%)
CMYKcmyk(55.8%, 0%, 84.2%, 62.7%)
CIE-LABlab(35.42, -32.65, 37.12)
CIE-LCHlch(35.42, 49.44, 131.33°)
OKLaboklab(43.25% -0.0905 0.0824)
OKLCHoklch(43.25% 0.122 137.7)
XYZxyz(5.1331, 8.7108, 1.8627)
Luminance0.0871 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F0F #440F5F
analogous
#525F0F #2A5F0F #0F5F1C
triadic
#2A5F0F #0F2A5F #5F0F2A
tetradic
#2A5F0F #0F525F #440F5F #5F1C0F
square
#2A5F0F #0F525F #440F5F #5F1C0F
split-complementary
#2A5F0F #1C0F5F #5F0F52
monochromatic
#0C1A04 #132A07 #2A5F0F #419417 #59C920

Accessibility & contrast

On white

7.66
#2A5F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2A5F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5F0F
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F0F#FFFFFF#000000##FFFFFF
##2A5F0F1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625600
Deuteranopia (green-blind)
#5C5218
Tritanopia (blue-blind)
#265B50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5f0f;
/* rgb */ color: rgb(42, 95, 15);
/* oklch */ color: oklch(43.2% 0.122 137.7);
Tailwind
colors: {
  custom: {
    50: '#6a8d55',
    500: '#2a5f0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f0f;
$custom-light: #6a8d55;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f0f",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 99.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.43247,
    "c": 0.1224,
    "h": 137.7
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#2A5F0F
secondary
#763298
accent
#38EFB2
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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