#7B8218#7B8218

#7B8218 is a mid, vivid yellow. Relative luminance 0.202; OKLCH L 58.2% C 0.122 H 113.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7B8218
RGBrgb(123, 130, 24)
HSLhsl(64, 69%, 30%)
HSVhsv(64, 82%, 51%)
CMYKcmyk(5.4%, 0%, 81.5%, 49%)
CIE-LABlab(52.11, -15.69, 51.44)
CIE-LCHlch(52.11, 53.78, 106.97°)
OKLaboklab(58.18% -0.0488 0.1119)
OKLCHoklch(58.18% 0.122 113.6)
XYZxyz(16.3164, 20.2425, 3.9117)
Luminance0.2024 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8218 #1F1882
analogous
#825418 #7B8218 #468218
triadic
#7B8218 #187B82 #82187B
tetradic
#7B8218 #188254 #1F1882 #821846
square
#7B8218 #188254 #1F1882 #821846
split-complementary
#7B8218 #184682 #541882
monochromatic
#191B05 #4A4E0E #7B8218 #ACB622 #D0DB3A

Accessibility & contrast

On white

4.16
#7B8218 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#7B8218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8218
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8218#FFFFFF#000000##000000
##7B82181.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#847A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7b8218;
/* rgb */ color: rgb(123, 130, 24);
/* oklch */ color: oklch(58.2% 0.122 113.6);
Tailwind
colors: {
  custom: {
    50: '#a5a660',
    500: '#7b8218',
    950: '#000000',
  },
}
SCSS
$custom: #7b8218;
$custom-light: #a5a660;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8218",
  "rgb": {
    "r": 123,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 63.962,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58179,
    "c": 0.12209,
    "h": 113.6
  },
  "luminance": 0.20242
}

Semantic roles & 50–950 ramp

primary
#7B8218
secondary
#4840B6
accent
#3CEC48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8218

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

Preview Lab → · Contrast checker → · Palette generator →

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