#2F510C#2F510C

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

Color values

HEX#2F510C
RGBrgb(47, 81, 12)
HSLhsl(90, 74%, 18%)
HSVhsv(90, 85%, 32%)
CMYKcmyk(42%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.68, -24.69, 33.79)
CIE-LCHlch(30.68, 41.85, 126.16°)
OKLaboklab(39.41% -0.0697 0.0749)
OKLCHoklch(39.41% 0.102 132.9)
XYZxyz(4.1810, 6.5155, 1.3851)
Luminance0.0652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F510C #2E0C51
analogous
#51500C #2F510C #0C510C
triadic
#2F510C #0C2F51 #510C2F
tetradic
#2F510C #0C5150 #2E0C51 #510C0C
square
#2F510C #0C5150 #2E0C51 #510C0C
split-complementary
#2F510C #0C0C51 #500C51
monochromatic
#0F1B04 #101C04 #2F510C #4E8614 #6DBC1C

Accessibility & contrast

On white

9.12
#2F510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F510C
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F510C#FFFFFF#000000##FFFFFF
##2F510C1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f510c;
/* rgb */ color: rgb(47, 81, 12);
/* oklch */ color: oklch(39.4% 0.102 132.9);
Tailwind
colors: {
  custom: {
    50: '#6b8251',
    500: '#2f510c',
    950: '#000000',
  },
}
SCSS
$custom: #2f510c;
$custom-light: #6b8251;
$custom-dark: #000000;
JSON
{
  "hex": "#2f510c",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 89.565,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.39413,
    "c": 0.10226,
    "h": 132.9
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#2F510C
secondary
#5C2C8C
accent
#37F193
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2F510C

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

Preview Lab → · Contrast checker → · Palette generator →

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