#2F511D#2F511D

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

Color values

HEX#2F511D
RGBrgb(47, 81, 29)
HSLhsl(99, 47%, 22%)
HSVhsv(99, 64%, 32%)
CMYKcmyk(42%, 0%, 64.2%, 68.2%)
CIE-LABlab(30.83, -23.17, 26.23)
CIE-LCHlch(30.83, 35.00, 131.45°)
OKLaboklab(39.58% -0.0641 0.0615)
OKLCHoklch(39.58% 0.089 136.2)
XYZxyz(4.3364, 6.5777, 2.2033)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F511D #3F1D51
analogous
#49511D #2F511D #1D5125
triadic
#2F511D #1D2F51 #511D2F
tetradic
#2F511D #1D4951 #3F1D51 #51251D
square
#2F511D #1D4951 #3F1D51 #51251D
split-complementary
#2F511D #251D51 #511D49
monochromatic
#0D1708 #15240D #2F511D #497E2D #63AB3D

Accessibility & contrast

On white

9.07
#2F511D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F511D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F511D
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F511D#FFFFFF#000000##FFFFFF
##2F511D1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A18
Deuteranopia (green-blind)
#4F4721
Tritanopia (blue-blind)
#2E4E46
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f511d;
/* rgb */ color: rgb(47, 81, 29);
/* oklch */ color: oklch(39.6% 0.089 136.2);
Tailwind
colors: {
  custom: {
    50: '#6a825b',
    500: '#2f511d',
    950: '#000000',
  },
}
SCSS
$custom: #2f511d;
$custom-light: #6a825b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f511d",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 29
  },
  "hsl": {
    "h": 99.231,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.39581,
    "c": 0.0888,
    "h": 136.2
  },
  "luminance": 0.06578
}

Semantic roles & 50–950 ramp

primary
#2F511D
secondary
#6F4486
accent
#51D7A9
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #2F511D

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

Preview Lab → · Contrast checker → · Palette generator →

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