#7B8A25#7B8A25

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

Color values

HEX#7B8A25
RGBrgb(123, 138, 37)
HSLhsl(69, 58%, 34%)
HSVhsv(69, 73%, 54%)
CMYKcmyk(10.9%, 0%, 73.2%, 45.9%)
CIE-LABlab(54.58, -19.27, 49.26)
CIE-LCHlch(54.58, 52.89, 111.36°)
OKLaboklab(60.18% -0.0575 0.1097)
OKLCHoklch(60.18% 0.124 117.7)
XYZxyz(17.5912, 22.5217, 5.1703)
Luminance0.2252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A25 #34258A
analogous
#8A6725 #7B8A25 #498A25
triadic
#7B8A25 #257B8A #8A257B
tetradic
#7B8A25 #258A67 #34258A #8A2549
square
#7B8A25 #258A67 #34258A #8A2549
split-complementary
#7B8A25 #25498A #67258A
monochromatic
#25290B #505A18 #7B8A25 #A6BA32 #C0D257

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8A25#FFFFFF#000000##000000
##7B8A251.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)
#938213
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8a25;
/* rgb */ color: rgb(123, 138, 37);
/* oklch */ color: oklch(60.2% 0.124 117.7);
Tailwind
colors: {
  custom: {
    50: '#a4ac67',
    500: '#7b8a25',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a25;
$custom-light: #a4ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a25",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 37
  },
  "hsl": {
    "h": 68.911,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60182,
    "c": 0.12387,
    "h": 117.7
  },
  "luminance": 0.22521
}

Semantic roles & 50–950 ramp

primary
#7B8A25
secondary
#6354B7
accent
#47E15E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A25

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

Preview Lab → · Contrast checker → · Palette generator →

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