#7B8516#7B8516

#7B8516 is a mid, vivid yellow. Relative luminance 0.210; OKLCH L 58.9% C 0.126 H 115.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7B8516
RGBrgb(123, 133, 22)
HSLhsl(65, 72%, 30%)
HSVhsv(65, 83%, 52%)
CMYKcmyk(7.5%, 0%, 83.5%, 47.8%)
CIE-LABlab(53.00, -17.35, 52.80)
CIE-LCHlch(53.00, 55.58, 108.19°)
OKLaboklab(58.89% -0.0535 0.1145)
OKLCHoklch(58.89% 0.126 115.1)
XYZxyz(16.7012, 21.0442, 3.9410)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8516 #201685
analogous
#855716 #7B8516 #448516
triadic
#7B8516 #167B85 #85167B
tetradic
#7B8516 #168557 #201685 #851644
square
#7B8516 #168557 #201685 #851644
split-complementary
#7B8516 #164485 #571685
monochromatic
#1A1C05 #4A500D #7B8516 #ACBA1F #CFDE37

Accessibility & contrast

On white

4.03
#7B8516 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#7B8516 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8516
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8516#FFFFFF#000000##000000
##7B85161.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8F7F21
Tritanopia (blue-blind)
#847D71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7b8516;
/* rgb */ color: rgb(123, 133, 22);
/* oklch */ color: oklch(58.9% 0.126 115.1);
Tailwind
colors: {
  custom: {
    50: '#a5a85f',
    500: '#7b8516',
    950: '#000000',
  },
}
SCSS
$custom: #7b8516;
$custom-light: #a5a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8516",
  "rgb": {
    "r": 123,
    "g": 133,
    "b": 22
  },
  "hsl": {
    "h": 65.405,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58888,
    "c": 0.12636,
    "h": 115.1
  },
  "luminance": 0.21044
}

Semantic roles & 50–950 ramp

primary
#7B8516
secondary
#493EB9
accent
#39EE4A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8516

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

Preview Lab → · Contrast checker → · Palette generator →

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