#7B8418#7B8418

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

Color values

HEX#7B8418
RGBrgb(123, 132, 24)
HSLhsl(65, 69%, 31%)
HSVhsv(65, 82%, 52%)
CMYKcmyk(6.8%, 0%, 81.8%, 48.2%)
CIE-LABlab(52.71, -16.75, 51.97)
CIE-LCHlch(52.71, 54.60, 107.87°)
OKLaboklab(58.66% -0.0517 0.113)
OKLCHoklch(58.66% 0.124 114.6)
XYZxyz(16.5850, 20.7797, 4.0012)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8418 #211884
analogous
#845718 #7B8418 #458418
triadic
#7B8418 #187B84 #84187B
tetradic
#7B8418 #188457 #211884 #841845
square
#7B8418 #188457 #211884 #841845
split-complementary
#7B8418 #184584 #571884
monochromatic
#1A1C05 #4B500F #7B8418 #ABB821 #CEDB3B

Accessibility & contrast

On white

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

On black

5.16
#7B8418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8418
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8418#FFFFFF#000000##000000
##7B84181.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8418;
/* rgb */ color: rgb(123, 132, 24);
/* oklch */ color: oklch(58.7% 0.124 114.6);
Tailwind
colors: {
  custom: {
    50: '#a5a760',
    500: '#7b8418',
    950: '#000000',
  },
}
SCSS
$custom: #7b8418;
$custom-light: #a5a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8418",
  "rgb": {
    "r": 123,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 65,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58658,
    "c": 0.12431,
    "h": 114.6
  },
  "luminance": 0.20779
}

Semantic roles & 50–950 ramp

primary
#7B8418
secondary
#4A40B8
accent
#3CEC4A
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8418

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

Preview Lab → · Contrast checker → · Palette generator →

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