#7B8530#7B8530

#7B8530 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.1% C 0.109 H 115.5°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7B8530
RGBrgb(123, 133, 48)
HSLhsl(67, 47%, 35%)
HSVhsv(67, 64%, 52%)
CMYKcmyk(7.5%, 0%, 63.9%, 47.8%)
CIE-LABlab(53.17, -15.93, 43.20)
CIE-LCHlch(53.17, 46.04, 110.24°)
OKLaboklab(59.08% -0.0471 0.0987)
OKLCHoklch(59.08% 0.109 115.5)
XYZxyz(17.0898, 21.1997, 5.9874)
Luminance0.2120 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8530 #3A3085
analogous
#856430 #7B8530 #508530
triadic
#7B8530 #307B85 #85307B
tetradic
#7B8530 #308564 #3A3085 #853050
square
#7B8530 #308564 #3A3085 #853050
split-complementary
#7B8530 #305085 #643085
monochromatic
#282B10 #515820 #7B8530 #A5B240 #BDC867

Accessibility & contrast

On white

4.01
#7B8530 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#7B8530 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8530
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8530#FFFFFF#000000##000000
##7B85301.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E26
Deuteranopia (green-blind)
#8D8036
Tritanopia (blue-blind)
#837E73
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7b8530;
/* rgb */ color: rgb(123, 133, 48);
/* oklch */ color: oklch(59.1% 0.109 115.5);
Tailwind
colors: {
  custom: {
    50: '#a3a86c',
    500: '#7b8530',
    950: '#000000',
  },
}
SCSS
$custom: #7b8530;
$custom-light: #a3a86c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8530",
  "rgb": {
    "r": 123,
    "g": 133,
    "b": 48
  },
  "hsl": {
    "h": 67.059,
    "s": 46.961,
    "l": 35.49
  },
  "oklch": {
    "l": 0.59078,
    "c": 0.10936,
    "h": 115.5
  },
  "luminance": 0.21199
}

Semantic roles & 50–950 ramp

primary
#7B8530
secondary
#6B61AF
accent
#51D761
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #7B8530

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

Preview Lab → · Contrast checker → · Palette generator →

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