#7B8417#7B8417

#7B8417 is a mid, vivid yellow. Relative luminance 0.208; OKLCH L 58.7% C 0.125 H 114.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7B8417
RGBrgb(123, 132, 23)
HSLhsl(65, 70%, 30%)
HSVhsv(65, 83%, 52%)
CMYKcmyk(6.8%, 0%, 82.6%, 48.2%)
CIE-LABlab(52.70, -16.79, 52.26)
CIE-LCHlch(52.70, 54.89, 107.81°)
OKLaboklab(58.65% -0.0519 0.1135)
OKLCHoklch(58.65% 0.125 114.6)
XYZxyz(16.5748, 20.7757, 3.9474)
Luminance0.2077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8417 #201784
analogous
#845617 #7B8417 #448417
triadic
#7B8417 #177B84 #84177B
tetradic
#7B8417 #178456 #201784 #841744
square
#7B8417 #178456 #201784 #841744
split-complementary
#7B8417 #174484 #561784
monochromatic
#1A1C05 #4A500E #7B8417 #ACB820 #CFDC39

Accessibility & contrast

On white

4.07
#7B8417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#7B8417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8417
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8417#FFFFFF#000000##000000
##7B84171.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#847C70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7b8417;
/* rgb */ color: rgb(123, 132, 23);
/* oklch */ color: oklch(58.7% 0.125 114.6);
Tailwind
colors: {
  custom: {
    50: '#a5a760',
    500: '#7b8417',
    950: '#000000',
  },
}
SCSS
$custom: #7b8417;
$custom-light: #a5a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8417",
  "rgb": {
    "r": 123,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 64.954,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58653,
    "c": 0.12479,
    "h": 114.6
  },
  "luminance": 0.20775
}

Semantic roles & 50–950 ramp

primary
#7B8417
secondary
#493FB8
accent
#3BED49
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8417

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

Preview Lab → · Contrast checker → · Palette generator →

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