#42701C#42701C

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

Color values

HEX#42701C
RGBrgb(66, 112, 28)
HSLhsl(93, 60%, 27%)
HSVhsv(93, 75%, 44%)
CMYKcmyk(41.1%, 0%, 75%, 56.1%)
CIE-LABlab(42.51, -30.80, 39.54)
CIE-LCHlch(42.51, 50.12, 127.91°)
OKLaboklab(49.4% -0.0862 0.0892)
OKLCHoklch(49.4% 0.124 134)
XYZxyz(8.2504, 12.8300, 3.1401)
Luminance0.1283 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42701C #4A1C70
analogous
#6C701C #42701C #1C7020
triadic
#42701C #1C4270 #701C42
tetradic
#42701C #1C6C70 #4A1C70 #70201C
square
#42701C #1C6C70 #4A1C70 #70201C
split-complementary
#42701C #201C70 #701C6C
monochromatic
#0E1806 #253F10 #42701C #5FA128 #7CCD39

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42701C#FFFFFF#000000##FFFFFF
##42701C1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75670E
Deuteranopia (green-blind)
#6E6324
Tritanopia (blue-blind)
#426B60
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #42701c;
/* rgb */ color: rgb(66, 112, 28);
/* oklch */ color: oklch(49.4% 0.124 134.0);
Tailwind
colors: {
  custom: {
    50: '#7b995e',
    500: '#42701c',
    950: '#000000',
  },
}
SCSS
$custom: #42701c;
$custom-light: #7b995e;
$custom-dark: #000000;
JSON
{
  "hex": "#42701c",
  "rgb": {
    "r": 66,
    "g": 112,
    "b": 28
  },
  "hsl": {
    "h": 92.857,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.49402,
    "c": 0.12406,
    "h": 134
  },
  "luminance": 0.1283
}

Semantic roles & 50–950 ramp

primary
#42701C
secondary
#7943A5
accent
#45E39B
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42701C

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

Preview Lab → · Contrast checker → · Palette generator →

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