#2F5116#2F5116

#2F5116 is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.5% C 0.095 H 134.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2F5116
RGBrgb(47, 81, 22)
HSLhsl(95, 57%, 20%)
HSVhsv(95, 73%, 32%)
CMYKcmyk(42%, 0%, 72.8%, 68.2%)
CIE-LABlab(30.75, -23.92, 29.68)
CIE-LCHlch(30.75, 38.12, 128.87°)
OKLaboklab(39.5% -0.0667 0.0679)
OKLCHoklch(39.5% 0.095 134.5)
XYZxyz(4.2595, 6.5469, 1.7981)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5116 #381651
analogous
#4D5116 #2F5116 #16511A
triadic
#2F5116 #162F51 #51162F
tetradic
#2F5116 #164D51 #381651 #511A16
square
#2F5116 #164D51 #381651 #511A16
split-complementary
#2F5116 #1A1651 #51164D
monochromatic
#0E1807 #132109 #2F5116 #4B8123 #67B130

Accessibility & contrast

On white

9.09
#2F5116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F5116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5116
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5116#FFFFFF#000000##FFFFFF
##2F51161.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0E
Deuteranopia (green-blind)
#50471B
Tritanopia (blue-blind)
#2F4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5116;
/* rgb */ color: rgb(47, 81, 22);
/* oklch */ color: oklch(39.5% 0.095 134.5);
Tailwind
colors: {
  custom: {
    50: '#6b8257',
    500: '#2f5116',
    950: '#000000',
  },
}
SCSS
$custom: #2f5116;
$custom-light: #6b8257;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5116",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 94.576,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39498,
    "c": 0.09518,
    "h": 134.5
  },
  "luminance": 0.06547
}

Semantic roles & 50–950 ramp

primary
#2F5116
secondary
#673A88
accent
#47E1A0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5116

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

Preview Lab → · Contrast checker → · Palette generator →

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