#7B8A21#7B8A21

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

Color values

HEX#7B8A21
RGBrgb(123, 138, 33)
HSLhsl(69, 61%, 34%)
HSVhsv(69, 76%, 54%)
CMYKcmyk(10.9%, 0%, 76.1%, 45.9%)
CIE-LABlab(54.55, -19.48, 50.71)
CIE-LCHlch(54.55, 54.32, 111.02°)
OKLaboklab(60.15% -0.0585 0.112)
OKLCHoklch(60.15% 0.126 117.6)
XYZxyz(17.5318, 22.4979, 4.8575)
Luminance0.2250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A21 #30218A
analogous
#8A6421 #7B8A21 #468A21
triadic
#7B8A21 #217B8A #8A217B
tetradic
#7B8A21 #218A64 #30218A #8A2146
square
#7B8A21 #218A64 #30218A #8A2146
split-complementary
#7B8A21 #21468A #64218A
monochromatic
#232709 #4F5915 #7B8A21 #A7BB2D #C2D550

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8A21#FFFFFF#000000##000000
##7B8A211.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)
#94820A
Deuteranopia (green-blind)
#92832A
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8a21;
/* rgb */ color: rgb(123, 138, 33);
/* oklch */ color: oklch(60.2% 0.126 117.6);
Tailwind
colors: {
  custom: {
    50: '#a4ac65',
    500: '#7b8a21',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a21;
$custom-light: #a4ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a21",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 68.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60154,
    "c": 0.12638,
    "h": 117.6
  },
  "luminance": 0.22498
}

Semantic roles & 50–950 ramp

primary
#7B8A21
secondary
#5D4EB9
accent
#43E55A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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