#2F5114#2F5114

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

Color values

HEX#2F5114
RGBrgb(47, 81, 20)
HSLhsl(93, 60%, 20%)
HSVhsv(93, 75%, 32%)
CMYKcmyk(42%, 0%, 75.3%, 68.2%)
CIE-LABlab(30.73, -24.10, 30.58)
CIE-LCHlch(30.73, 38.94, 128.24°)
OKLaboklab(39.48% -0.0674 0.0695)
OKLCHoklch(39.48% 0.097 134.1)
XYZxyz(4.2409, 6.5395, 1.7005)
Luminance0.0654 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5114 #361451
analogous
#4D5114 #2F5114 #145118
triadic
#2F5114 #142F51 #51142F
tetradic
#2F5114 #144D51 #361451 #511814
square
#2F5114 #144D51 #361451 #511814
split-complementary
#2F5114 #181451 #51144D
monochromatic
#0E1906 #132008 #2F5114 #4B8220 #68B32C

Accessibility & contrast

On white

9.10
#2F5114 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5114
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5114#FFFFFF#000000##FFFFFF
##2F51141.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0B
Deuteranopia (green-blind)
#504719
Tritanopia (blue-blind)
#2F4E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f5114;
/* rgb */ color: rgb(47, 81, 20);
/* oklch */ color: oklch(39.5% 0.097 134.1);
Tailwind
colors: {
  custom: {
    50: '#6b8255',
    500: '#2f5114',
    950: '#000000',
  },
}
SCSS
$custom: #2f5114;
$custom-light: #6b8255;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5114",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 20
  },
  "hsl": {
    "h": 93.443,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39477,
    "c": 0.0968,
    "h": 134.1
  },
  "luminance": 0.0654
}

Semantic roles & 50–950 ramp

primary
#2F5114
secondary
#653889
accent
#44E49D
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5114

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

Preview Lab → · Contrast checker → · Palette generator →

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