#7B8517#7B8517

#7B8517 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#7B8517
RGBrgb(123, 133, 23)
HSLhsl(65, 71%, 31%)
HSVhsv(65, 83%, 52%)
CMYKcmyk(7.5%, 0%, 82.7%, 47.8%)
CIE-LABlab(53.00, -17.32, 52.52)
CIE-LCHlch(53.00, 55.30, 108.25°)
OKLaboklab(58.89% -0.0534 0.114)
OKLCHoklch(58.89% 0.126 115.1)
XYZxyz(16.7111, 21.0482, 3.9928)
Luminance0.2105 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8517 #211785
analogous
#855817 #7B8517 #448517
triadic
#7B8517 #177B85 #85177B
tetradic
#7B8517 #178558 #211785 #851744
square
#7B8517 #178558 #211785 #851744
split-complementary
#7B8517 #174485 #581785
monochromatic
#1A1D05 #4B510E #7B8517 #ABB920 #CEDD3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8517#FFFFFF#000000##000000
##7B85171.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)
#8F7F22
Tritanopia (blue-blind)
#847D71
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7b8517;
/* rgb */ color: rgb(123, 133, 23);
/* oklch */ color: oklch(58.9% 0.126 115.1);
Tailwind
colors: {
  custom: {
    50: '#a5a860',
    500: '#7b8517',
    950: '#000000',
  },
}
SCSS
$custom: #7b8517;
$custom-light: #a5a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8517",
  "rgb": {
    "r": 123,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 65.455,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58893,
    "c": 0.12591,
    "h": 115.1
  },
  "luminance": 0.21048
}

Semantic roles & 50–950 ramp

primary
#7B8517
secondary
#4A3FB9
accent
#3BED4B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8517

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

Preview Lab → · Contrast checker → · Palette generator →

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