#7B8A24#7B8A24

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

Color values

HEX#7B8A24
RGBrgb(123, 138, 36)
HSLhsl(69, 59%, 34%)
HSVhsv(69, 74%, 54%)
CMYKcmyk(10.9%, 0%, 73.9%, 45.9%)
CIE-LABlab(54.57, -19.32, 49.63)
CIE-LCHlch(54.57, 53.26, 111.27°)
OKLaboklab(60.17% -0.0578 0.1103)
OKLCHoklch(60.17% 0.125 117.7)
XYZxyz(17.5757, 22.5155, 5.0888)
Luminance0.2251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A24 #33248A
analogous
#8A6624 #7B8A24 #488A24
triadic
#7B8A24 #247B8A #8A247B
tetradic
#7B8A24 #248A66 #33248A #8A2448
square
#7B8A24 #248A66 #33248A #8A2448
split-complementary
#7B8A24 #24488A #66248A
monochromatic
#24290B #505917 #7B8A24 #A6BB31 #C0D356

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8A24#FFFFFF#000000##000000
##7B8A241.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)
#948211
Deuteranopia (green-blind)
#92832C
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8a24;
/* rgb */ color: rgb(123, 138, 36);
/* oklch */ color: oklch(60.2% 0.125 117.7);
Tailwind
colors: {
  custom: {
    50: '#a4ac66',
    500: '#7b8a24',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a24;
$custom-light: #a4ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a24",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 36
  },
  "hsl": {
    "h": 68.824,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60174,
    "c": 0.12451,
    "h": 117.7
  },
  "luminance": 0.22515
}

Semantic roles & 50–950 ramp

primary
#7B8A24
secondary
#6253B7
accent
#46E25D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A24

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

Preview Lab → · Contrast checker → · Palette generator →

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