#2A5E0F#2A5E0F

#2A5E0F is a dark, vivid yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.121 H 137.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#2A5E0F
RGBrgb(42, 94, 15)
HSLhsl(99, 72%, 21%)
HSVhsv(99, 84%, 37%)
CMYKcmyk(55.3%, 0%, 84%, 63.1%)
CIE-LABlab(35.07, -32.23, 36.79)
CIE-LCHlch(35.07, 48.91, 131.22°)
OKLaboklab(42.96% -0.0893 0.0817)
OKLCHoklch(42.96% 0.121 137.5)
XYZxyz(5.0436, 8.5318, 1.8329)
Luminance0.0853 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5E0F #430F5E
analogous
#525E0F #2A5E0F #0F5E1C
triadic
#2A5E0F #0F2A5E #5E0F2A
tetradic
#2A5E0F #0F525E #430F5E #5E1C0F
square
#2A5E0F #0F525E #430F5E #5E1C0F
split-complementary
#2A5E0F #1C0F5E #5E0F52
monochromatic
#0C1A04 #122907 #2A5E0F #429317 #59C820

Accessibility & contrast

On white

7.76
#2A5E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2A5E0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5E0F
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5E0F#FFFFFF#000000##FFFFFF
##2A5E0F1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615500
Deuteranopia (green-blind)
#5B5118
Tritanopia (blue-blind)
#265A4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5e0f;
/* rgb */ color: rgb(42, 94, 15);
/* oklch */ color: oklch(43.0% 0.121 137.5);
Tailwind
colors: {
  custom: {
    50: '#6a8c55',
    500: '#2a5e0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a5e0f;
$custom-light: #6a8c55;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5e0f",
  "rgb": {
    "r": 42,
    "g": 94,
    "b": 15
  },
  "hsl": {
    "h": 99.494,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.42955,
    "c": 0.12109,
    "h": 137.5
  },
  "luminance": 0.08532
}

Semantic roles & 50–950 ramp

primary
#2A5E0F
secondary
#753197
accent
#39EFB1
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2A5E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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