#7B8818#7B8818

#7B8818 is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.6% C 0.129 H 116.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7B8818
RGBrgb(123, 136, 24)
HSLhsl(67, 70%, 31%)
HSVhsv(67, 82%, 53%)
CMYKcmyk(9.6%, 0%, 82.4%, 46.7%)
CIE-LABlab(53.91, -18.84, 53.03)
CIE-LCHlch(53.91, 56.28, 109.56°)
OKLaboklab(59.62% -0.0575 0.1153)
OKLCHoklch(59.62% 0.129 116.5)
XYZxyz(17.1379, 21.8855, 4.1855)
Luminance0.2188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8818 #251888
analogous
#885D18 #7B8818 #438818
triadic
#7B8818 #187B88 #88187B
tetradic
#7B8818 #18885D #251888 #881843
square
#7B8818 #18885D #251888 #881843
split-complementary
#7B8818 #184388 #5D1888
monochromatic
#1D2006 #4C540F #7B8818 #AABC21 #CADD3E

Accessibility & contrast

On white

3.91
#7B8818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7B8818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8818
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8818#FFFFFF#000000##000000
##7B88181.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#838074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7b8818;
/* rgb */ color: rgb(123, 136, 24);
/* oklch */ color: oklch(59.6% 0.129 116.5);
Tailwind
colors: {
  custom: {
    50: '#a5aa61',
    500: '#7b8818',
    950: '#000000',
  },
}
SCSS
$custom: #7b8818;
$custom-light: #a5aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8818",
  "rgb": {
    "r": 123,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 66.964,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5962,
    "c": 0.12885,
    "h": 116.5
  },
  "luminance": 0.21885
}

Semantic roles & 50–950 ramp

primary
#7B8818
secondary
#4F40BC
accent
#3BED50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8818

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

Preview Lab → · Contrast checker → · Palette generator →

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