#7B8515#7B8515

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

Color values

HEX#7B8515
RGBrgb(123, 133, 21)
HSLhsl(65, 73%, 30%)
HSVhsv(65, 84%, 52%)
CMYKcmyk(7.5%, 0%, 84.2%, 47.8%)
CIE-LABlab(52.99, -17.39, 53.08)
CIE-LCHlch(52.99, 55.85, 108.14°)
OKLaboklab(58.88% -0.0537 0.1149)
OKLCHoklch(58.88% 0.127 115.1)
XYZxyz(16.6918, 21.0405, 3.8912)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8515 #1F1585
analogous
#855715 #7B8515 #438515
triadic
#7B8515 #157B85 #85157B
tetradic
#7B8515 #158557 #1F1585 #851543
square
#7B8515 #158557 #1F1585 #851543
split-complementary
#7B8515 #154385 #571585
monochromatic
#191B04 #4A500D #7B8515 #ACBA1D #D0DF35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8515#FFFFFF#000000##000000
##7B85151.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)
#8F7F21
Tritanopia (blue-blind)
#847D71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7b8515;
/* rgb */ color: rgb(123, 133, 21);
/* oklch */ color: oklch(58.9% 0.127 115.1);
Tailwind
colors: {
  custom: {
    50: '#a5a85f',
    500: '#7b8515',
    950: '#000000',
  },
}
SCSS
$custom: #7b8515;
$custom-light: #a5a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8515",
  "rgb": {
    "r": 123,
    "g": 133,
    "b": 21
  },
  "hsl": {
    "h": 65.357,
    "s": 72.727,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58883,
    "c": 0.1268,
    "h": 115.1
  },
  "luminance": 0.2104
}

Semantic roles & 50–950 ramp

primary
#7B8515
secondary
#483CB9
accent
#38EF49
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8515

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

Preview Lab → · Contrast checker → · Palette generator →

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