#2D520F#2D520F

#2D520F is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.103 H 134.5°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2D520F
RGBrgb(45, 82, 15)
HSLhsl(93, 69%, 19%)
HSVhsv(93, 82%, 32%)
CMYKcmyk(45.1%, 0%, 81.7%, 67.8%)
CIE-LABlab(30.94, -25.77, 32.88)
CIE-LCHlch(30.94, 41.77, 128.09°)
OKLaboklab(39.61% -0.0722 0.0735)
OKLCHoklch(39.61% 0.103 134.5)
XYZxyz(4.1856, 6.6267, 1.5104)
Luminance0.0663 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D520F #340F52
analogous
#4F520F #2D520F #0F5213
triadic
#2D520F #0F2D52 #520F2D
tetradic
#2D520F #0F4F52 #340F52 #52130F
square
#2D520F #0F4F52 #340F52 #52130F
split-complementary
#2D520F #130F52 #520F4F
monochromatic
#0E1A05 #111E06 #2D520F #498618 #66B922

Accessibility & contrast

On white

9.03
#2D520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2D520F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D520F
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D520F#FFFFFF#000000##FFFFFF
##2D520F1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B03
Deuteranopia (green-blind)
#504816
Tritanopia (blue-blind)
#2C4F45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d520f;
/* rgb */ color: rgb(45, 82, 15);
/* oklch */ color: oklch(39.6% 0.103 134.5);
Tailwind
colors: {
  custom: {
    50: '#6a8353',
    500: '#2d520f',
    950: '#000000',
  },
}
SCSS
$custom: #2d520f;
$custom-light: #6a8353;
$custom-dark: #000000;
JSON
{
  "hex": "#2d520f",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 93.134,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39605,
    "c": 0.10302,
    "h": 134.5
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#2D520F
secondary
#63318C
accent
#3CEC9D
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2D520F

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

Preview Lab → · Contrast checker → · Palette generator →

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