#2D510E#2D510E

#2D510E is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.3% C 0.102 H 134.1°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2D510E
RGBrgb(45, 81, 14)
HSLhsl(92, 71%, 19%)
HSVhsv(92, 83%, 32%)
CMYKcmyk(44.4%, 0%, 82.7%, 68.2%)
CIE-LABlab(30.58, -25.36, 32.92)
CIE-LCHlch(30.58, 41.55, 127.61°)
OKLaboklab(39.31% -0.0712 0.0734)
OKLCHoklch(39.31% 0.102 134.1)
XYZxyz(4.1038, 6.4742, 1.4488)
Luminance0.0647 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D510E #320E51
analogous
#4E510E #2D510E #0E5110
triadic
#2D510E #0E2D51 #510E2D
tetradic
#2D510E #0E4E51 #320E51 #51100E
square
#2D510E #0E4E51 #320E51 #51100E
split-complementary
#2D510E #100E51 #510E4E
monochromatic
#0E1A05 #101D05 #2D510E #4A8517 #67B920

Accessibility & contrast

On white

9.15
#2D510E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2D510E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D510E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D510E#FFFFFF#000000##FFFFFF
##2D510E1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A02
Deuteranopia (green-blind)
#504715
Tritanopia (blue-blind)
#2D4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d510e;
/* rgb */ color: rgb(45, 81, 14);
/* oklch */ color: oklch(39.3% 0.102 134.1);
Tailwind
colors: {
  custom: {
    50: '#6a8252',
    500: '#2d510e',
    950: '#000000',
  },
}
SCSS
$custom: #2d510e;
$custom-light: #6a8252;
$custom-dark: #000000;
JSON
{
  "hex": "#2d510e",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 14
  },
  "hsl": {
    "h": 92.239,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39305,
    "c": 0.10224,
    "h": 134.1
  },
  "luminance": 0.06474
}

Semantic roles & 50–950 ramp

primary
#2D510E
secondary
#612F8C
accent
#3AED9B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2D510E

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

Preview Lab → · Contrast checker → · Palette generator →

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