#7F901F#7F901F

#7F901F is a mid, vivid yellow. Relative luminance 0.246; OKLCH L 61.9% C 0.133 H 118.2°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7F901F
RGBrgb(127, 144, 31)
HSLhsl(69, 65%, 34%)
HSVhsv(69, 78%, 56%)
CMYKcmyk(11.8%, 0%, 78.5%, 43.5%)
CIE-LABlab(56.64, -20.89, 53.45)
CIE-LCHlch(56.64, 57.39, 111.35°)
OKLaboklab(61.91% -0.0628 0.1173)
OKLCHoklch(61.91% 0.133 118.2)
XYZxyz(18.9734, 24.5577, 5.0366)
Luminance0.2456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F901F #301F90
analogous
#90691F #7F901F #46901F
triadic
#7F901F #1F7F90 #901F7F
tetradic
#7F901F #1F9069 #301F90 #901F46
square
#7F901F #1F9069 #301F90 #901F46
split-complementary
#7F901F #1F4690 #691F90
monochromatic
#262B09 #535E14 #7F901F #ABC22A #C5D950

Accessibility & contrast

On white

3.55
#7F901F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#7F901F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F901F
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F901F#FFFFFF#000000##000000
##7F901F1.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8801
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#87887B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7f901f;
/* rgb */ color: rgb(127, 144, 31);
/* oklch */ color: oklch(61.9% 0.133 118.2);
Tailwind
colors: {
  custom: {
    50: '#a7b065',
    500: '#7f901f',
    950: '#000000',
  },
}
SCSS
$custom: #7f901f;
$custom-light: #a7b065;
$custom-dark: #000000;
JSON
{
  "hex": "#7f901f",
  "rgb": {
    "r": 127,
    "g": 144,
    "b": 31
  },
  "hsl": {
    "h": 69.027,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61909,
    "c": 0.13308,
    "h": 118.2
  },
  "luminance": 0.24557
}

Semantic roles & 50–950 ramp

primary
#7F901F
secondary
#5F4EBC
accent
#40E859
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F901F

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

Preview Lab → · Contrast checker → · Palette generator →

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