#2F6512#2F6512

#2F6512 is a mid, vivid yellow-green. Relative luminance 0.100; OKLCH L 45.2% C 0.126 H 137.3°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2F6512
RGBrgb(47, 101, 18)
HSLhsl(99, 70%, 23%)
HSVhsv(99, 82%, 40%)
CMYKcmyk(53.5%, 0%, 82.2%, 60.4%)
CIE-LABlab(37.76, -33.37, 38.38)
CIE-LCHlch(37.76, 50.85, 131.00°)
OKLaboklab(45.24% -0.0926 0.0855)
OKLCHoklch(45.24% 0.126 137.3)
XYZxyz(5.9350, 9.9549, 2.1809)
Luminance0.0995 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6512 #481265
analogous
#586512 #2F6512 #12651E
triadic
#2F6512 #122F65 #65122F
tetradic
#2F6512 #125865 #481265 #651E12
square
#2F6512 #125865 #481265 #651E12
split-complementary
#2F6512 #1E1265 #651258
monochromatic
#0C1A05 #173109 #2F6512 #47991B #5FCD25

Accessibility & contrast

On white

7.02
#2F6512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2F6512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6512
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6512#FFFFFF#000000##FFFFFF
##2F65121.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C00
Deuteranopia (green-blind)
#62571B
Tritanopia (blue-blind)
#2B6155
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f6512;
/* rgb */ color: rgb(47, 101, 18);
/* oklch */ color: oklch(45.2% 0.126 137.3);
Tailwind
colors: {
  custom: {
    50: '#6e9157',
    500: '#2f6512',
    950: '#000000',
  },
}
SCSS
$custom: #2f6512;
$custom-light: #6e9157;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6512",
  "rgb": {
    "r": 47,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 99.036,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45239,
    "c": 0.12599,
    "h": 137.3
  },
  "luminance": 0.09955
}

Semantic roles & 50–950 ramp

primary
#2F6512
secondary
#79369D
accent
#3BEDAF
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #2F6512

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

Preview Lab → · Contrast checker → · Palette generator →

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