#2F520F#2F520F

#2F520F is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.7% C 0.102 H 133.6°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F520F
RGBrgb(47, 82, 15)
HSLhsl(91, 69%, 19%)
HSVhsv(91, 82%, 32%)
CMYKcmyk(42.7%, 0%, 81.7%, 67.8%)
CIE-LABlab(31.05, -24.98, 33.02)
CIE-LCHlch(31.05, 41.41, 127.11°)
OKLaboklab(39.72% -0.0702 0.0738)
OKLCHoklch(39.72% 0.102 133.6)
XYZxyz(4.2757, 6.6732, 1.5146)
Luminance0.0667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F520F #320F52
analogous
#51520F #2F520F #0F5211
triadic
#2F520F #0F2F52 #520F2F
tetradic
#2F520F #0F5152 #320F52 #52110F
square
#2F520F #0F5152 #320F52 #52110F
split-complementary
#2F520F #110F52 #520F51
monochromatic
#0F1A05 #111E06 #2F520F #4D8618 #6AB922

Accessibility & contrast

On white

9.00
#2F520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F520F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F520F#FFFFFF#000000##FFFFFF
##2F520F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B03
Deuteranopia (green-blind)
#514816
Tritanopia (blue-blind)
#2F4E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f520f;
/* rgb */ color: rgb(47, 82, 15);
/* oklch */ color: oklch(39.7% 0.102 133.6);
Tailwind
colors: {
  custom: {
    50: '#6b8353',
    500: '#2f520f',
    950: '#000000',
  },
}
SCSS
$custom: #2f520f;
$custom-light: #6b8353;
$custom-dark: #000000;
JSON
{
  "hex": "#2f520f",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 91.343,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.39724,
    "c": 0.10183,
    "h": 133.6
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#2F520F
secondary
#60318C
accent
#3CEC98
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F520F

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

Preview Lab → · Contrast checker → · Palette generator →

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