#2F5815#2F5815

#2F5815 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.5% C 0.106 H 135.8°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2F5815
RGBrgb(47, 88, 21)
HSLhsl(97, 61%, 21%)
HSVhsv(97, 76%, 35%)
CMYKcmyk(46.6%, 0%, 76.1%, 65.5%)
CIE-LABlab(33.22, -27.36, 32.70)
CIE-LCHlch(33.22, 42.64, 129.92°)
OKLaboklab(41.51% -0.0761 0.0741)
OKLCHoklch(41.51% 0.106 135.8)
XYZxyz(4.7973, 7.6376, 1.9308)
Luminance0.0764 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5815 #3E1558
analogous
#515815 #2F5815 #15581D
triadic
#2F5815 #152F58 #58152F
tetradic
#2F5815 #155158 #3E1558 #581D15
square
#2F5815 #155158 #3E1558 #581D15
split-complementary
#2F5815 #1D1558 #581551
monochromatic
#0D1906 #152709 #2F5815 #498921 #64BB2D

Accessibility & contrast

On white

8.31
#2F5815 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F5815 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5815
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5815#FFFFFF#000000##FFFFFF
##2F58151.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500A
Deuteranopia (green-blind)
#564D1B
Tritanopia (blue-blind)
#2E544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f5815;
/* rgb */ color: rgb(47, 88, 21);
/* oklch */ color: oklch(41.5% 0.106 135.8);
Tailwind
colors: {
  custom: {
    50: '#6c8757',
    500: '#2f5815',
    950: '#000000',
  },
}
SCSS
$custom: #2f5815;
$custom-light: #6c8757;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5815",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 21
  },
  "hsl": {
    "h": 96.716,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41511,
    "c": 0.10624,
    "h": 135.8
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#2F5815
secondary
#6E3990
accent
#43E5A6
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5815

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

Preview Lab → · Contrast checker → · Palette generator →

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