#2F5314#2F5314

#2F5314 is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.1% C 0.100 H 134.6°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2F5314
RGBrgb(47, 83, 20)
HSLhsl(94, 61%, 20%)
HSVhsv(94, 76%, 33%)
CMYKcmyk(43.4%, 0%, 75.9%, 67.5%)
CIE-LABlab(31.44, -25.07, 31.32)
CIE-LCHlch(31.44, 40.12, 128.68°)
OKLaboklab(40.06% -0.07 0.071)
OKLCHoklch(40.06% 0.1 134.6)
XYZxyz(4.3917, 6.8411, 1.7508)
Luminance0.0684 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5314 #381453
analogous
#4E5314 #2F5314 #145319
triadic
#2F5314 #142F53 #53142F
tetradic
#2F5314 #144E53 #381453 #531914
square
#2F5314 #144E53 #381453 #531914
split-complementary
#2F5314 #191453 #53144E
monochromatic
#0E1906 #132208 #2F5314 #4B8420 #67B62C

Accessibility & contrast

On white

8.87
#2F5314 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2F5314 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5314
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5314#FFFFFF#000000##FFFFFF
##2F53141.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0A
Deuteranopia (green-blind)
#51491A
Tritanopia (blue-blind)
#2E5046
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f5314;
/* rgb */ color: rgb(47, 83, 20);
/* oklch */ color: oklch(40.1% 0.100 134.6);
Tailwind
colors: {
  custom: {
    50: '#6b8356',
    500: '#2f5314',
    950: '#000000',
  },
}
SCSS
$custom: #2f5314;
$custom-light: #6b8356;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5314",
  "rgb": {
    "r": 47,
    "g": 83,
    "b": 20
  },
  "hsl": {
    "h": 94.286,
    "s": 61.165,
    "l": 20.196
  },
  "oklch": {
    "l": 0.40056,
    "c": 0.09975,
    "h": 134.6
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#2F5314
secondary
#67388B
accent
#44E49F
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F5314

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

Preview Lab → · Contrast checker → · Palette generator →

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