#2F5210#2F5210

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

Color values

HEX#2F5210
RGBrgb(47, 82, 16)
HSLhsl(92, 67%, 19%)
HSVhsv(92, 80%, 32%)
CMYKcmyk(42.7%, 0%, 80.5%, 67.8%)
CIE-LABlab(31.06, -24.91, 32.63)
CIE-LCHlch(31.06, 41.05, 127.36°)
OKLaboklab(39.73% -0.0699 0.0731)
OKLCHoklch(39.73% 0.101 133.7)
XYZxyz(4.2830, 6.6761, 1.5531)
Luminance0.0668 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5210 #331052
analogous
#505210 #2F5210 #105212
triadic
#2F5210 #102F52 #52102F
tetradic
#2F5210 #105052 #331052 #521210
square
#2F5210 #105052 #331052 #521210
split-complementary
#2F5210 #121052 #521050
monochromatic
#0F1A05 #121F06 #2F5210 #4C851A #6AB824

Accessibility & contrast

On white

8.99
#2F5210 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2F5210 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5210
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5210#FFFFFF#000000##FFFFFF
##2F52101.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5210;
/* rgb */ color: rgb(47, 82, 16);
/* oklch */ color: oklch(39.7% 0.101 133.7);
Tailwind
colors: {
  custom: {
    50: '#6b8353',
    500: '#2f5210',
    950: '#000000',
  },
}
SCSS
$custom: #2f5210;
$custom-light: #6b8353;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5210",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 16
  },
  "hsl": {
    "h": 91.818,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39732,
    "c": 0.10117,
    "h": 133.7
  },
  "luminance": 0.06676
}

Semantic roles & 50–950 ramp

primary
#2F5210
secondary
#62328C
accent
#3EEA99
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5210

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

Preview Lab → · Contrast checker → · Palette generator →

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