#7B901B#7B901B

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

Color values

HEX#7B901B
RGBrgb(123, 144, 27)
HSLhsl(71, 68%, 34%)
HSVhsv(71, 81%, 56%)
CMYKcmyk(14.6%, 0%, 81.3%, 43.5%)
CIE-LABlab(56.32, -22.81, 54.30)
CIE-LCHlch(56.32, 58.90, 112.79°)
OKLaboklab(61.57% -0.0682 0.1186)
OKLCHoklch(61.57% 0.137 119.9)
XYZxyz(18.3398, 24.2367, 4.7487)
Luminance0.2424 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B901B #301B90
analogous
#906A1B #7B901B #40901B
triadic
#7B901B #1B7B90 #901B7B
tetradic
#7B901B #1B906A #301B90 #901B40
square
#7B901B #1B906A #301B90 #901B40
split-complementary
#7B901B #1B4090 #6A1B90
monochromatic
#232908 #4F5C11 #7B901B #A7C425 #C2DD49

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B901B#FFFFFF#000000##000000
##7B901B1.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)
#9A8700
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#83887B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7b901b;
/* rgb */ color: rgb(123, 144, 27);
/* oklch */ color: oklch(61.6% 0.137 119.9);
Tailwind
colors: {
  custom: {
    50: '#a5b063',
    500: '#7b901b',
    950: '#000000',
  },
}
SCSS
$custom: #7b901b;
$custom-light: #a5b063;
$custom-dark: #000000;
JSON
{
  "hex": "#7b901b",
  "rgb": {
    "r": 123,
    "g": 144,
    "b": 27
  },
  "hsl": {
    "h": 70.769,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61571,
    "c": 0.13675,
    "h": 119.9
  },
  "luminance": 0.24237
}

Semantic roles & 50–950 ramp

primary
#7B901B
secondary
#5D48BF
accent
#3DEB5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B901B

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

Preview Lab → · Contrast checker → · Palette generator →

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