#2A5311#2A5311

#2A5311 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.105 H 136.2°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2A5311
RGBrgb(42, 83, 17)
HSLhsl(97, 66%, 20%)
HSVhsv(97, 80%, 33%)
CMYKcmyk(49.4%, 0%, 79.5%, 67.5%)
CIE-LABlab(31.16, -27.22, 32.23)
CIE-LCHlch(31.16, 42.19, 130.17°)
OKLaboklab(39.75% -0.0757 0.0726)
OKLCHoklch(39.75% 0.105 136.2)
XYZxyz(4.1492, 6.7190, 1.6085)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5311 #3A1153
analogous
#4B5311 #2A5311 #115319
triadic
#2A5311 #112A53 #53112A
tetradic
#2A5311 #114B53 #3A1153 #531911
square
#2A5311 #114B53 #3A1153 #531911
split-complementary
#2A5311 #191153 #53114B
monochromatic
#0D1905 #102007 #2A5311 #44861B #5DB926

Accessibility & contrast

On white

8.96
#2A5311 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2A5311 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5311
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5311#FFFFFF#000000##FFFFFF
##2A53111.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B05
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#285046
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5311;
/* rgb */ color: rgb(42, 83, 17);
/* oklch */ color: oklch(39.7% 0.105 136.2);
Tailwind
colors: {
  custom: {
    50: '#688454',
    500: '#2a5311',
    950: '#000000',
  },
}
SCSS
$custom: #2a5311;
$custom-light: #688454;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5311",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 17
  },
  "hsl": {
    "h": 97.273,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.39745,
    "c": 0.10486,
    "h": 136.2
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

primary
#2A5311
secondary
#6B348C
accent
#3FE9A9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5311

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

Preview Lab → · Contrast checker → · Palette generator →

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