#2A5312#2A5312

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

Color values

HEX#2A5312
RGBrgb(42, 83, 18)
HSLhsl(98, 64%, 20%)
HSVhsv(98, 78%, 33%)
CMYKcmyk(49.4%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.17, -27.13, 31.82)
CIE-LCHlch(31.17, 41.82, 130.45°)
OKLaboklab(39.75% -0.0754 0.0719)
OKLCHoklch(39.75% 0.104 136.4)
XYZxyz(4.1572, 6.7222, 1.6506)
Luminance0.0672 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5312 #3B1253
analogous
#4B5312 #2A5312 #12531B
triadic
#2A5312 #122A53 #53122A
tetradic
#2A5312 #124B53 #3B1253 #531B12
square
#2A5312 #124B53 #3B1253 #531B12
split-complementary
#2A5312 #1B1253 #53124B
monochromatic
#0D1905 #112107 #2A5312 #43851D #5DB828

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5312#FFFFFF#000000##FFFFFF
##2A53121.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)
#564B07
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#285046
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2a5312;
/* rgb */ color: rgb(42, 83, 18);
/* oklch */ color: oklch(39.8% 0.104 136.4);
Tailwind
colors: {
  custom: {
    50: '#688455',
    500: '#2a5312',
    950: '#000000',
  },
}
SCSS
$custom: #2a5312;
$custom-light: #688455;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5312",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 97.846,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39753,
    "c": 0.10416,
    "h": 136.4
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#2A5312
secondary
#6C358C
accent
#40E7AA
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #2A5312

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

Preview Lab → · Contrast checker → · Palette generator →

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