#42701A#42701A

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

Color values

HEX#42701A
RGBrgb(66, 112, 26)
HSLhsl(92, 62%, 27%)
HSVhsv(92, 77%, 44%)
CMYKcmyk(41.1%, 0%, 76.8%, 56.1%)
CIE-LABlab(42.49, -30.94, 40.32)
CIE-LCHlch(42.49, 50.82, 127.50°)
OKLaboklab(49.39% -0.0868 0.0905)
OKLCHoklch(49.39% 0.125 133.8)
XYZxyz(8.2272, 12.8208, 3.0182)
Luminance0.1282 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42701A #481A70
analogous
#6D701A #42701A #1A701D
triadic
#42701A #1A4270 #701A42
tetradic
#42701A #1A6D70 #481A70 #701D1A
square
#42701A #1A6D70 #481A70 #701D1A
split-complementary
#42701A #1D1A70 #701A6D
monochromatic
#0F1906 #253E0E #42701A #5FA226 #7DD034

Accessibility & contrast

On white

5.89
#42701A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#42701A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42701A
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42701A#FFFFFF#000000##FFFFFF
##42701A1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756709
Deuteranopia (green-blind)
#6E6322
Tritanopia (blue-blind)
#426B5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #42701a;
/* rgb */ color: rgb(66, 112, 26);
/* oklch */ color: oklch(49.4% 0.125 133.8);
Tailwind
colors: {
  custom: {
    50: '#7b995d',
    500: '#42701a',
    950: '#000000',
  },
}
SCSS
$custom: #42701a;
$custom-light: #7b995d;
$custom-dark: #000000;
JSON
{
  "hex": "#42701a",
  "rgb": {
    "r": 66,
    "g": 112,
    "b": 26
  },
  "hsl": {
    "h": 92.093,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49386,
    "c": 0.12539,
    "h": 133.8
  },
  "luminance": 0.12821
}

Semantic roles & 50–950 ramp

primary
#42701A
secondary
#7641A5
accent
#42E59A
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #42701A

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

Preview Lab → · Contrast checker → · Palette generator →

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