#2A5711#2A5711

#2A5711 is a dark, moderate yellow-green. Relative luminance 0.073; OKLCH L 40.9% C 0.110 H 136.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#2A5711
RGBrgb(42, 87, 17)
HSLhsl(99, 67%, 20%)
HSVhsv(99, 80%, 34%)
CMYKcmyk(51.7%, 0%, 80.5%, 65.9%)
CIE-LABlab(32.59, -29.03, 33.65)
CIE-LCHlch(32.59, 44.45, 130.78°)
OKLaboklab(40.92% -0.0806 0.0755)
OKLCHoklch(40.92% 0.11 136.9)
XYZxyz(4.4641, 7.3488, 1.7134)
Luminance0.0735 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5711 #3E1157
analogous
#4D5711 #2A5711 #11571B
triadic
#2A5711 #112A57 #57112A
tetradic
#2A5711 #114D57 #3E1157 #571B11
square
#2A5711 #114D57 #3E1157 #571B11
split-complementary
#2A5711 #1B1157 #57114D
monochromatic
#0C1A05 #112407 #2A5711 #438A1B #5BBD25

Accessibility & contrast

On white

8.50
#2A5711 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2A5711 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5711
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5711#FFFFFF#000000##FFFFFF
##2A57111.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F04
Deuteranopia (green-blind)
#544B18
Tritanopia (blue-blind)
#28544A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2a5711;
/* rgb */ color: rgb(42, 87, 17);
/* oklch */ color: oklch(40.9% 0.110 136.9);
Tailwind
colors: {
  custom: {
    50: '#698755',
    500: '#2a5711',
    950: '#000000',
  },
}
SCSS
$custom: #2a5711;
$custom-light: #698755;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5711",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 17
  },
  "hsl": {
    "h": 98.571,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40919,
    "c": 0.11045,
    "h": 136.9
  },
  "luminance": 0.07349
}

Semantic roles & 50–950 ramp

primary
#2A5711
secondary
#6F3490
accent
#3EEAAD
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2A5711

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

Preview Lab → · Contrast checker → · Palette generator →

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