#7F9016#7F9016

#7F9016 is a mid, vivid yellow. Relative luminance 0.245; OKLCH L 61.9% C 0.137 H 118.0°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7F9016
RGBrgb(127, 144, 22)
HSLhsl(68, 73%, 33%)
HSVhsv(68, 85%, 56%)
CMYKcmyk(11.8%, 0%, 84.7%, 43.5%)
CIE-LABlab(56.60, -21.25, 56.04)
CIE-LCHlch(56.60, 59.93, 110.76°)
OKLaboklab(61.86% -0.0644 0.1213)
OKLCHoklch(61.86% 0.137 118)
XYZxyz(18.8710, 24.5167, 4.4970)
Luminance0.2452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F9016 #271690
analogous
#906416 #7F9016 #429016
triadic
#7F9016 #167F90 #90167F
tetradic
#7F9016 #169064 #271690 #901642
square
#7F9016 #169064 #271690 #901642
split-complementary
#7F9016 #164290 #641690
monochromatic
#212606 #505B0E #7F9016 #AEC51E #CBE23F

Accessibility & contrast

On white

3.56
#7F9016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#7F9016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F9016
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F9016#FFFFFF#000000##000000
##7F90161.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#988824
Tritanopia (blue-blind)
#87877A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7f9016;
/* rgb */ color: rgb(127, 144, 22);
/* oklch */ color: oklch(61.9% 0.137 118.0);
Tailwind
colors: {
  custom: {
    50: '#a8b061',
    500: '#7f9016',
    950: '#000000',
  },
}
SCSS
$custom: #7f9016;
$custom-light: #a8b061;
$custom-dark: #000000;
JSON
{
  "hex": "#7f9016",
  "rgb": {
    "r": 127,
    "g": 144,
    "b": 22
  },
  "hsl": {
    "h": 68.361,
    "s": 73.494,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61863,
    "c": 0.13732,
    "h": 118
  },
  "luminance": 0.24516
}

Semantic roles & 50–950 ramp

primary
#7F9016
secondary
#5240C2
accent
#38F051
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F9016

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

Preview Lab → · Contrast checker → · Palette generator →

#7F9016 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva