#7B8217#7B8217

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

Color values

HEX#7B8217
RGBrgb(123, 130, 23)
HSLhsl(64, 70%, 30%)
HSVhsv(64, 82%, 51%)
CMYKcmyk(5.4%, 0%, 82.3%, 49%)
CIE-LABlab(52.11, -15.73, 51.73)
CIE-LCHlch(52.11, 54.07, 106.91°)
OKLaboklab(58.17% -0.049 0.1124)
OKLCHoklch(58.17% 0.123 113.6)
XYZxyz(16.3062, 20.2384, 3.8579)
Luminance0.2024 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8217 #1E1782
analogous
#825317 #7B8217 #468217
triadic
#7B8217 #177B82 #82177B
tetradic
#7B8217 #178253 #1E1782 #821746
square
#7B8217 #178253 #1E1782 #821746
split-complementary
#7B8217 #174682 #531782
monochromatic
#191A05 #4A4E0E #7B8217 #ACB620 #D1DC38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8217#FFFFFF#000000##000000
##7B82171.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)
#8C7D21
Tritanopia (blue-blind)
#847A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7b8217;
/* rgb */ color: rgb(123, 130, 23);
/* oklch */ color: oklch(58.2% 0.123 113.6);
Tailwind
colors: {
  custom: {
    50: '#a5a65f',
    500: '#7b8217',
    950: '#000000',
  },
}
SCSS
$custom: #7b8217;
$custom-light: #a5a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8217",
  "rgb": {
    "r": 123,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 63.925,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.58174,
    "c": 0.12257,
    "h": 113.6
  },
  "luminance": 0.20238
}

Semantic roles & 50–950 ramp

primary
#7B8217
secondary
#463EB6
accent
#3BED47
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8217

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

Preview Lab → · Contrast checker → · Palette generator →

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