#7B8A22#7B8A22

#7B8A22 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#7B8A22
RGBrgb(123, 138, 34)
HSLhsl(69, 60%, 34%)
HSVhsv(69, 75%, 54%)
CMYKcmyk(10.9%, 0%, 75.4%, 45.9%)
CIE-LABlab(54.56, -19.43, 50.35)
CIE-LCHlch(54.56, 53.97, 111.10°)
OKLaboklab(60.16% -0.0583 0.1115)
OKLCHoklch(60.16% 0.126 117.6)
XYZxyz(17.5460, 22.5036, 4.9324)
Luminance0.2250 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A22 #31228A
analogous
#8A6522 #7B8A22 #478A22
triadic
#7B8A22 #227B8A #8A227B
tetradic
#7B8A22 #228A65 #31228A #8A2247
square
#7B8A22 #228A65 #31228A #8A2247
split-complementary
#7B8A22 #22478A #65228A
monochromatic
#23280A #4F5916 #7B8A22 #A7BB2E #C2D452

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7b8a22;
/* rgb */ color: rgb(123, 138, 34);
/* oklch */ color: oklch(60.2% 0.126 117.6);
Tailwind
colors: {
  custom: {
    50: '#a4ac65',
    500: '#7b8a22',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a22;
$custom-light: #a4ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a22",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 68.654,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60161,
    "c": 0.12577,
    "h": 117.6
  },
  "luminance": 0.22503
}

Semantic roles & 50–950 ramp

primary
#7B8A22
secondary
#5F50B8
accent
#44E45B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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