#7B8A20#7B8A20

#7B8A20 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.1% C 0.127 H 117.5°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7B8A20
RGBrgb(123, 138, 32)
HSLhsl(68, 62%, 33%)
HSVhsv(68, 77%, 54%)
CMYKcmyk(10.9%, 0%, 76.8%, 45.9%)
CIE-LABlab(54.55, -19.53, 51.05)
CIE-LCHlch(54.55, 54.66, 110.93°)
OKLaboklab(60.15% -0.0587 0.1126)
OKLCHoklch(60.15% 0.127 117.5)
XYZxyz(17.5180, 22.4924, 4.7848)
Luminance0.2249 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A20 #2F208A
analogous
#8A6420 #7B8A20 #468A20
triadic
#7B8A20 #207B8A #8A207B
tetradic
#7B8A20 #208A64 #2F208A #8A2046
square
#7B8A20 #208A64 #2F208A #8A2046
split-complementary
#7B8A20 #20468A #64208A
monochromatic
#222709 #4F5814 #7B8A20 #A7BC2C #C3D64E

Accessibility & contrast

On white

3.82
#7B8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#7B8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A20
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A20#FFFFFF#000000##000000
##7B8A201.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948207
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8a20;
/* rgb */ color: rgb(123, 138, 32);
/* oklch */ color: oklch(60.1% 0.127 117.5);
Tailwind
colors: {
  custom: {
    50: '#a4ac64',
    500: '#7b8a20',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a20;
$custom-light: #a4ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a20",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 68.491,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60147,
    "c": 0.12698,
    "h": 117.5
  },
  "luminance": 0.22492
}

Semantic roles & 50–950 ramp

primary
#7B8A20
secondary
#5C4DB9
accent
#42E559
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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