#7B8518#7B8518

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

Color values

HEX#7B8518
RGBrgb(123, 133, 24)
HSLhsl(66, 69%, 31%)
HSVhsv(66, 82%, 52%)
CMYKcmyk(7.5%, 0%, 82%, 47.8%)
CIE-LABlab(53.01, -17.28, 52.23)
CIE-LCHlch(53.01, 55.02, 108.30°)
OKLaboklab(58.9% -0.0532 0.1136)
OKLCHoklch(58.9% 0.125 115.1)
XYZxyz(16.7213, 21.0523, 4.0466)
Luminance0.2105 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8518 #221885
analogous
#855818 #7B8518 #448518
triadic
#7B8518 #187B85 #85187B
tetradic
#7B8518 #188558 #221885 #851844
square
#7B8518 #188558 #221885 #851844
split-complementary
#7B8518 #184485 #581885
monochromatic
#1B1D05 #4B510F #7B8518 #ABB921 #CDDC3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7b8518;
/* rgb */ color: rgb(123, 133, 24);
/* oklch */ color: oklch(58.9% 0.125 115.1);
Tailwind
colors: {
  custom: {
    50: '#a5a860',
    500: '#7b8518',
    950: '#000000',
  },
}
SCSS
$custom: #7b8518;
$custom-light: #a5a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8518",
  "rgb": {
    "r": 123,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 65.505,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58898,
    "c": 0.12544,
    "h": 115.1
  },
  "luminance": 0.21052
}

Semantic roles & 50–950 ramp

primary
#7B8518
secondary
#4B40B9
accent
#3CEC4C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7B8518

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

Preview Lab → · Contrast checker → · Palette generator →

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