#2D510C#2D510C

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

Color values

HEX#2D510C
RGBrgb(45, 81, 12)
HSLhsl(91, 74%, 18%)
HSVhsv(91, 85%, 32%)
CMYKcmyk(44.4%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.57, -25.49, 33.65)
CIE-LCHlch(30.57, 42.21, 127.15°)
OKLaboklab(39.29% -0.0717 0.0746)
OKLCHoklch(39.29% 0.103 133.8)
XYZxyz(4.0909, 6.4691, 1.3809)
Luminance0.0647 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D510C #300C51
analogous
#4F510C #2D510C #0C510D
triadic
#2D510C #0C2D51 #510C2D
tetradic
#2D510C #0C4F51 #300C51 #510D0C
square
#2D510C #0C4F51 #300C51 #510D0C
split-complementary
#2D510C #0D0C51 #510C4F
monochromatic
#0F1B04 #0F1C04 #2D510C #4B8614 #68BC1C

Accessibility & contrast

On white

9.16
#2D510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D510C
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D510C#FFFFFF#000000##FFFFFF
##2D510C1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A00
Deuteranopia (green-blind)
#504714
Tritanopia (blue-blind)
#2D4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d510c;
/* rgb */ color: rgb(45, 81, 12);
/* oklch */ color: oklch(39.3% 0.103 133.8);
Tailwind
colors: {
  custom: {
    50: '#6a8251',
    500: '#2d510c',
    950: '#000000',
  },
}
SCSS
$custom: #2d510c;
$custom-light: #6a8251;
$custom-dark: #000000;
JSON
{
  "hex": "#2d510c",
  "rgb": {
    "r": 45,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 91.304,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39291,
    "c": 0.10344,
    "h": 133.8
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#2D510C
secondary
#5E2C8C
accent
#37F198
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2D510C

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

Preview Lab → · Contrast checker → · Palette generator →

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