#3F8F12#3F8F12

#3F8F12 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 57.7% C 0.170 H 137.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#3F8F12
RGBrgb(63, 143, 18)
HSLhsl(98, 78%, 32%)
HSVhsv(98, 87%, 56%)
CMYKcmyk(55.9%, 0%, 87.4%, 43.9%)
CIE-LABlab(52.67, -45.28, 52.21)
CIE-LCHlch(52.67, 69.12, 130.93°)
OKLaboklab(57.7% -0.1256 0.1143)
OKLCHoklch(57.7% 0.17 137.7)
XYZxyz(11.9811, 20.7444, 3.9449)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F8F12 #62128F
analogous
#7E8F12 #3F8F12 #128F24
triadic
#3F8F12 #123F8F #8F123F
tetradic
#3F8F12 #127E8F #62128F #8F2412
square
#3F8F12 #127E8F #62128F #8F2412
split-complementary
#3F8F12 #24128F #8F127E
monochromatic
#0F2204 #27590B #3F8F12 #57C519 #75E636

Accessibility & contrast

On white

4.08
#3F8F12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#3F8F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3F8F12
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F8F12#FFFFFF#000000##000000
##3F8F121.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8A7B23
Tritanopia (blue-blind)
#398A79
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #3f8f12;
/* rgb */ color: rgb(63, 143, 18);
/* oklch */ color: oklch(57.7% 0.170 137.7);
Tailwind
colors: {
  custom: {
    50: '#7eb05e',
    500: '#3f8f12',
    950: '#000000',
  },
}
SCSS
$custom: #3f8f12;
$custom-light: #7eb05e;
$custom-dark: #000000;
JSON
{
  "hex": "#3f8f12",
  "rgb": {
    "r": 63,
    "g": 143,
    "b": 18
  },
  "hsl": {
    "h": 98.4,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57704,
    "c": 0.16982,
    "h": 137.7
  },
  "luminance": 0.20745
}

Semantic roles & 50–950 ramp

primary
#3F8F12
secondary
#923AC3
accent
#34F4AF
background
#F8FAF5
surface
#EFF5EA
border
#CACFC6
text
#0B1105
muted
#7C8079

Preview Lab

Preview with #3F8F12

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

Preview Lab → · Contrast checker → · Palette generator →

#3F8F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva