#7F901B#7F901B

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

Color values

HEX#7F901B
RGBrgb(127, 144, 27)
HSLhsl(69, 68%, 34%)
HSVhsv(69, 81%, 56%)
CMYKcmyk(11.8%, 0%, 81.3%, 43.5%)
CIE-LABlab(56.62, -21.06, 54.68)
CIE-LCHlch(56.62, 58.59, 111.07°)
OKLaboklab(61.89% -0.0636 0.1192)
OKLCHoklch(61.89% 0.135 118.1)
XYZxyz(18.9239, 24.5379, 4.7761)
Luminance0.2454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F901B #2C1B90
analogous
#90661B #7F901B #44901B
triadic
#7F901B #1B7F90 #901B7F
tetradic
#7F901B #1B9066 #2C1B90 #901B44
square
#7F901B #1B9066 #2C1B90 #901B44
split-complementary
#7F901B #1B4490 #661B90
monochromatic
#242908 #525C11 #7F901B #ACC425 #C7DD49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F901B#FFFFFF#000000##000000
##7F901B1.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)
#9A8800
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#87887B
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #7f901b;
/* rgb */ color: rgb(127, 144, 27);
/* oklch */ color: oklch(61.9% 0.135 118.1);
Tailwind
colors: {
  custom: {
    50: '#a8b063',
    500: '#7f901b',
    950: '#000000',
  },
}
SCSS
$custom: #7f901b;
$custom-light: #a8b063;
$custom-dark: #000000;
JSON
{
  "hex": "#7f901b",
  "rgb": {
    "r": 127,
    "g": 144,
    "b": 27
  },
  "hsl": {
    "h": 68.718,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61887,
    "c": 0.13512,
    "h": 118.1
  },
  "luminance": 0.24538
}

Semantic roles & 50–950 ramp

primary
#7F901B
secondary
#5948BF
accent
#3DEB56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F901B

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

Preview Lab → · Contrast checker → · Palette generator →

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