#7B901C#7B901C

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

Color values

HEX#7B901C
RGBrgb(123, 144, 28)
HSLhsl(71, 67%, 34%)
HSVhsv(71, 81%, 56%)
CMYKcmyk(14.6%, 0%, 80.6%, 43.5%)
CIE-LABlab(56.33, -22.77, 54.00)
CIE-LCHlch(56.33, 58.61, 112.87°)
OKLaboklab(61.58% -0.068 0.1181)
OKLCHoklch(61.58% 0.136 119.9)
XYZxyz(18.3516, 24.2414, 4.8107)
Luminance0.2424 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B901C #311C90
analogous
#906B1C #7B901C #41901C
triadic
#7B901C #1C7B90 #901C7B
tetradic
#7B901C #1C906B #311C90 #901C41
square
#7B901C #1C906B #311C90 #901C41
split-complementary
#7B901C #1C4190 #6B1C90
monochromatic
#232A08 #4F5D12 #7B901C #A7C326 #C2DC4A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B901C#FFFFFF#000000##000000
##7B901C1.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)
#978728
Tritanopia (blue-blind)
#83887B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7b901c;
/* rgb */ color: rgb(123, 144, 28);
/* oklch */ color: oklch(61.6% 0.136 119.9);
Tailwind
colors: {
  custom: {
    50: '#a5b063',
    500: '#7b901c',
    950: '#000000',
  },
}
SCSS
$custom: #7b901c;
$custom-light: #a5b063;
$custom-dark: #000000;
JSON
{
  "hex": "#7b901c",
  "rgb": {
    "r": 123,
    "g": 144,
    "b": 28
  },
  "hsl": {
    "h": 70.862,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61576,
    "c": 0.13627,
    "h": 119.9
  },
  "luminance": 0.24241
}

Semantic roles & 50–950 ramp

primary
#7B901C
secondary
#5F4ABE
accent
#3DEA5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B901C

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

Preview Lab → · Contrast checker → · Palette generator →

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