#42781F#42781F

#42781F is a mid, vivid yellow-green. Relative luminance 0.147; OKLCH L 51.6% C 0.133 H 135.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#42781F
RGBrgb(66, 120, 31)
HSLhsl(96, 59%, 30%)
HSVhsv(96, 74%, 47%)
CMYKcmyk(45%, 0%, 74.2%, 52.9%)
CIE-LABlab(45.21, -34.16, 41.06)
CIE-LCHlch(45.21, 53.42, 129.76°)
OKLaboklab(51.62% -0.0951 0.0928)
OKLCHoklch(51.62% 0.133 135.7)
XYZxyz(9.2103, 14.6896, 3.6461)
Luminance0.1469 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42781F #551F78
analogous
#6F781F #42781F #1F7828
triadic
#42781F #1F4278 #781F42
tetradic
#42781F #1F6F78 #551F78 #78281F
square
#42781F #1F6F78 #551F78 #78281F
split-complementary
#42781F #281F78 #781F6F
monochromatic
#0D1806 #274712 #42781F #5DA92C #7ACE43

Accessibility & contrast

On white

5.33
#42781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#42781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42781F
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42781F#FFFFFF#000000##FFFFFF
##42781F1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E10
Deuteranopia (green-blind)
#756927
Tritanopia (blue-blind)
#407367
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #42781f;
/* rgb */ color: rgb(66, 120, 31);
/* oklch */ color: oklch(51.6% 0.133 135.7);
Tailwind
colors: {
  custom: {
    50: '#7b9f61',
    500: '#42781f',
    950: '#000000',
  },
}
SCSS
$custom: #42781f;
$custom-light: #7b9f61;
$custom-dark: #000000;
JSON
{
  "hex": "#42781f",
  "rgb": {
    "r": 66,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 96.404,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.5162,
    "c": 0.1329,
    "h": 135.7
  },
  "luminance": 0.1469
}

Semantic roles & 50–950 ramp

primary
#42781F
secondary
#8447AB
accent
#46E2A5
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42781F

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

Preview Lab → · Contrast checker → · Palette generator →

#42781F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva