#42701F#42701F

#42701F is a mid, vivid yellow-green. Relative luminance 0.128; OKLCH L 49.4% C 0.122 H 134.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#42701F
RGBrgb(66, 112, 31)
HSLhsl(94, 57%, 28%)
HSVhsv(94, 72%, 44%)
CMYKcmyk(41.1%, 0%, 72.3%, 56.1%)
CIE-LABlab(42.53, -30.56, 38.31)
CIE-LCHlch(42.53, 49.01, 128.58°)
OKLaboklab(49.43% -0.0854 0.0871)
OKLCHoklch(49.43% 0.122 134.4)
XYZxyz(8.2881, 12.8451, 3.3387)
Luminance0.1285 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42701F #4D1F70
analogous
#6A701F #42701F #1F7024
triadic
#42701F #1F4270 #701F42
tetradic
#42701F #1F6A70 #4D1F70 #70241F
square
#42701F #1F6A70 #4D1F70 #70241F
split-complementary
#42701F #241F70 #701F6A
monochromatic
#0E1807 #264012 #42701F #5EA02C #7BCA3F

Accessibility & contrast

On white

5.88
#42701F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#42701F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42701F
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42701F#FFFFFF#000000##FFFFFF
##42701F1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746713
Deuteranopia (green-blind)
#6E6326
Tritanopia (blue-blind)
#416C60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #42701f;
/* rgb */ color: rgb(66, 112, 31);
/* oklch */ color: oklch(49.4% 0.122 134.4);
Tailwind
colors: {
  custom: {
    50: '#7a9960',
    500: '#42701f',
    950: '#000000',
  },
}
SCSS
$custom: #42701f;
$custom-light: #7a9960;
$custom-dark: #000000;
JSON
{
  "hex": "#42701f",
  "rgb": {
    "r": 66,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 94.074,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.49428,
    "c": 0.12193,
    "h": 134.4
  },
  "luminance": 0.12846
}

Semantic roles & 50–950 ramp

primary
#42701F
secondary
#7C47A4
accent
#48E09E
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42701F

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

Preview Lab → · Contrast checker → · Palette generator →

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