#2F510E#2F510E

#2F510E is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.101 H 133.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F510E
RGBrgb(47, 81, 14)
HSLhsl(90, 71%, 19%)
HSVhsv(90, 83%, 32%)
CMYKcmyk(42%, 0%, 82.7%, 68.2%)
CIE-LABlab(30.69, -24.57, 33.06)
CIE-LCHlch(30.69, 41.19, 126.61°)
OKLaboklab(39.43% -0.0691 0.0737)
OKLCHoklch(39.43% 0.101 133.2)
XYZxyz(4.1939, 6.5207, 1.4530)
Luminance0.0652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F510E #300E51
analogous
#50510E #2F510E #0E510F
triadic
#2F510E #0E2F51 #510E2F
tetradic
#2F510E #0E5051 #300E51 #510F0E
square
#2F510E #0E5051 #300E51 #510F0E
split-complementary
#2F510E #0F0E51 #510E50
monochromatic
#0F1A05 #111D05 #2F510E #4D8517 #6CB920

Accessibility & contrast

On white

9.11
#2F510E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F510E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F510E
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F510E#FFFFFF#000000##FFFFFF
##2F510E1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A02
Deuteranopia (green-blind)
#504715
Tritanopia (blue-blind)
#2F4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f510e;
/* rgb */ color: rgb(47, 81, 14);
/* oklch */ color: oklch(39.4% 0.101 133.2);
Tailwind
colors: {
  custom: {
    50: '#6b8252',
    500: '#2f510e',
    950: '#000000',
  },
}
SCSS
$custom: #2f510e;
$custom-light: #6b8252;
$custom-dark: #000000;
JSON
{
  "hex": "#2f510e",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 14
  },
  "hsl": {
    "h": 90.448,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.10105,
    "h": 133.2
  },
  "luminance": 0.06521
}

Semantic roles & 50–950 ramp

primary
#2F510E
secondary
#5E2F8C
accent
#3AED95
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F510E

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

Preview Lab → · Contrast checker → · Palette generator →

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