#2F5C16#2F5C16

#2F5C16 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.111 H 136.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2F5C16
RGBrgb(47, 92, 22)
HSLhsl(99, 61%, 22%)
HSVhsv(99, 76%, 36%)
CMYKcmyk(48.9%, 0%, 76.1%, 63.9%)
CIE-LABlab(34.63, -29.12, 33.72)
CIE-LCHlch(34.63, 44.55, 130.81°)
OKLaboklab(42.68% -0.0808 0.0764)
OKLCHoklch(42.68% 0.111 136.6)
XYZxyz(5.1441, 8.3162, 2.0930)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5C16 #43165C
analogous
#525C16 #2F5C16 #165C20
triadic
#2F5C16 #162F5C #5C162F
tetradic
#2F5C16 #16525C #43165C #5C2016
square
#2F5C16 #16525C #43165C #5C2016
split-complementary
#2F5C16 #20165C #5C1652
monochromatic
#0D1906 #162B0A #2F5C16 #488D22 #61BF2E

Accessibility & contrast

On white

7.88
#2F5C16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F5C16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5C16
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5C16#FFFFFF#000000##FFFFFF
##2F5C161.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F540A
Deuteranopia (green-blind)
#59501D
Tritanopia (blue-blind)
#2D584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5c16;
/* rgb */ color: rgb(47, 92, 22);
/* oklch */ color: oklch(42.7% 0.111 136.6);
Tailwind
colors: {
  custom: {
    50: '#6c8a58',
    500: '#2f5c16',
    950: '#000000',
  },
}
SCSS
$custom: #2f5c16;
$custom-light: #6c8a58;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5c16",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 22
  },
  "hsl": {
    "h": 98.571,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42676,
    "c": 0.11119,
    "h": 136.6
  },
  "luminance": 0.08317
}

Semantic roles & 50–950 ramp

primary
#2F5C16
secondary
#743B93
accent
#43E5AB
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5C16

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

Preview Lab → · Contrast checker → · Palette generator →

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