#42701B#42701B

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

Color values

HEX#42701B
RGBrgb(66, 112, 27)
HSLhsl(92, 61%, 27%)
HSVhsv(92, 76%, 44%)
CMYKcmyk(41.1%, 0%, 75.9%, 56.1%)
CIE-LABlab(42.50, -30.87, 39.93)
CIE-LCHlch(42.50, 50.47, 127.71°)
OKLaboklab(49.39% -0.0865 0.0898)
OKLCHoklch(49.39% 0.125 133.9)
XYZxyz(8.2386, 12.8253, 3.0781)
Luminance0.1283 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42701B #491B70
analogous
#6C701B #42701B #1B701F
triadic
#42701B #1B4270 #701B42
tetradic
#42701B #1B6C70 #491B70 #701F1B
square
#42701B #1B6C70 #491B70 #701F1B
split-complementary
#42701B #1F1B70 #701B6C
monochromatic
#0F1906 #253F0F #42701B #5FA127 #7CCF37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42701B#FFFFFF#000000##FFFFFF
##42701B1.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)
#75670C
Deuteranopia (green-blind)
#6E6323
Tritanopia (blue-blind)
#426B5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #42701b;
/* rgb */ color: rgb(66, 112, 27);
/* oklch */ color: oklch(49.4% 0.125 133.9);
Tailwind
colors: {
  custom: {
    50: '#7b995e',
    500: '#42701b',
    950: '#000000',
  },
}
SCSS
$custom: #42701b;
$custom-light: #7b995e;
$custom-dark: #000000;
JSON
{
  "hex": "#42701b",
  "rgb": {
    "r": 66,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 92.471,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49394,
    "c": 0.12473,
    "h": 133.9
  },
  "luminance": 0.12826
}

Semantic roles & 50–950 ramp

primary
#42701B
secondary
#7742A5
accent
#44E49B
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #42701B

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

Preview Lab → · Contrast checker → · Palette generator →

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