#2F6511#2F6511

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

Color values

HEX#2F6511
RGBrgb(47, 101, 17)
HSLhsl(99, 71%, 23%)
HSVhsv(99, 83%, 40%)
CMYKcmyk(53.5%, 0%, 83.2%, 60.4%)
CIE-LABlab(37.76, -33.43, 38.72)
CIE-LCHlch(37.76, 51.15, 130.81°)
OKLaboklab(45.23% -0.0928 0.086)
OKLCHoklch(45.23% 0.127 137.2)
XYZxyz(5.9270, 9.9517, 2.1388)
Luminance0.0995 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6511 #471165
analogous
#596511 #2F6511 #11651D
triadic
#2F6511 #112F65 #65112F
tetradic
#2F6511 #115965 #471165 #651D11
square
#2F6511 #115965 #471165 #651D11
split-complementary
#2F6511 #1D1165 #651159
monochromatic
#0C1A04 #173108 #2F6511 #47991A #60CE23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F6511#FFFFFF#000000##FFFFFF
##2F65111.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)
#2C6155
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f6511;
/* rgb */ color: rgb(47, 101, 17);
/* oklch */ color: oklch(45.2% 0.127 137.2);
Tailwind
colors: {
  custom: {
    50: '#6e9157',
    500: '#2f6511',
    950: '#000000',
  },
}
SCSS
$custom: #2f6511;
$custom-light: #6e9157;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6511",
  "rgb": {
    "r": 47,
    "g": 101,
    "b": 17
  },
  "hsl": {
    "h": 98.571,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.45232,
    "c": 0.12654,
    "h": 137.2
  },
  "luminance": 0.09952
}

Semantic roles & 50–950 ramp

primary
#2F6511
secondary
#78359D
accent
#3AEEAE
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #2F6511

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

Preview Lab → · Contrast checker → · Palette generator →

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