#7B901F#7B901F

#7B901F is a mid, vivid yellow-green. Relative luminance 0.243; OKLCH L 61.6% C 0.135 H 120.0°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7B901F
RGBrgb(123, 144, 31)
HSLhsl(71, 65%, 34%)
HSVhsv(71, 78%, 56%)
CMYKcmyk(14.6%, 0%, 78.5%, 43.5%)
CIE-LABlab(56.34, -22.64, 53.07)
CIE-LCHlch(56.34, 57.69, 113.10°)
OKLaboklab(61.59% -0.0674 0.1167)
OKLCHoklch(61.59% 0.135 120)
XYZxyz(18.3893, 24.2565, 5.0093)
Luminance0.2426 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B901F #341F90
analogous
#906C1F #7B901F #43901F
triadic
#7B901F #1F7B90 #901F7B
tetradic
#7B901F #1F906C #341F90 #901F43
square
#7B901F #1F906C #341F90 #901F43
split-complementary
#7B901F #1F4390 #6C1F90
monochromatic
#252B09 #505E14 #7B901F #A6C22A #C0D950

Accessibility & contrast

On white

3.59
#7B901F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#7B901F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B901F
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B901F#FFFFFF#000000##000000
##7B901F1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8701
Deuteranopia (green-blind)
#97872A
Tritanopia (blue-blind)
#82887B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7b901f;
/* rgb */ color: rgb(123, 144, 31);
/* oklch */ color: oklch(61.6% 0.135 120.0);
Tailwind
colors: {
  custom: {
    50: '#a4b065',
    500: '#7b901f',
    950: '#000000',
  },
}
SCSS
$custom: #7b901f;
$custom-light: #a4b065;
$custom-dark: #000000;
JSON
{
  "hex": "#7b901f",
  "rgb": {
    "r": 123,
    "g": 144,
    "b": 31
  },
  "hsl": {
    "h": 71.15,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61593,
    "c": 0.13471,
    "h": 120
  },
  "luminance": 0.24256
}

Semantic roles & 50–950 ramp

primary
#7B901F
secondary
#634EBC
accent
#40E85F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B901F

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

Preview Lab → · Contrast checker → · Palette generator →

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