#2F5518#2F5518

#2F5518 is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.7% C 0.100 H 135.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#2F5518
RGBrgb(47, 85, 24)
HSLhsl(97, 56%, 21%)
HSVhsv(97, 72%, 33%)
CMYKcmyk(44.7%, 0%, 71.8%, 66.7%)
CIE-LABlab(32.18, -25.67, 30.26)
CIE-LCHlch(32.18, 39.68, 130.31°)
OKLaboklab(40.67% -0.0713 0.0694)
OKLCHoklch(40.67% 0.1 135.8)
XYZxyz(4.5855, 7.1670, 2.0057)
Luminance0.0717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5518 #3E1855
analogous
#4E5518 #2F5518 #185520
triadic
#2F5518 #182F55 #55182F
tetradic
#2F5518 #184E55 #3E1855 #552018
square
#2F5518 #184E55 #3E1855 #552018
split-complementary
#2F5518 #201855 #55184E
monochromatic
#0D1807 #15250B #2F5518 #498525 #64B433

Accessibility & contrast

On white

8.63
#2F5518 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F5518 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5518
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5518#FFFFFF#000000##FFFFFF
##2F55181.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E10
Deuteranopia (green-blind)
#534B1D
Tritanopia (blue-blind)
#2E5249
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f5518;
/* rgb */ color: rgb(47, 85, 24);
/* oklch */ color: oklch(40.7% 0.100 135.8);
Tailwind
colors: {
  custom: {
    50: '#6b8558',
    500: '#2f5518',
    950: '#000000',
  },
}
SCSS
$custom: #2f5518;
$custom-light: #6b8558;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5518",
  "rgb": {
    "r": 47,
    "g": 85,
    "b": 24
  },
  "hsl": {
    "h": 97.377,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.40674,
    "c": 0.0995,
    "h": 135.8
  },
  "luminance": 0.07167
}

Semantic roles & 50–950 ramp

primary
#2F5518
secondary
#6E3D8C
accent
#49DFA6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5518

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

Preview Lab → · Contrast checker → · Palette generator →

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