#7B8315#7B8315

#7B8315 is a mid, vivid yellow. Relative luminance 0.205; OKLCH L 58.4% C 0.125 H 114.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7B8315
RGBrgb(123, 131, 21)
HSLhsl(64, 72%, 30%)
HSVhsv(64, 84%, 51%)
CMYKcmyk(6.1%, 0%, 84%, 48.6%)
CIE-LABlab(52.40, -16.33, 52.56)
CIE-LCHlch(52.40, 55.04, 107.26°)
OKLaboklab(58.4% -0.0508 0.1138)
OKLCHoklch(58.4% 0.125 114.1)
XYZxyz(16.4206, 20.4980, 3.8008)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8315 #1D1583
analogous
#835415 #7B8315 #448315
triadic
#7B8315 #157B83 #83157B
tetradic
#7B8315 #158354 #1D1583 #831544
square
#7B8315 #158354 #1D1583 #831544
split-complementary
#7B8315 #154483 #541583
monochromatic
#191A04 #494E0D #7B8315 #ADB81D #D2DE34

Accessibility & contrast

On white

4.12
#7B8315 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#7B8315 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8315
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8315#FFFFFF#000000##000000
##7B83151.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#8D7E20
Tritanopia (blue-blind)
#847B6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7b8315;
/* rgb */ color: rgb(123, 131, 21);
/* oklch */ color: oklch(58.4% 0.125 114.1);
Tailwind
colors: {
  custom: {
    50: '#a5a65f',
    500: '#7b8315',
    950: '#000000',
  },
}
SCSS
$custom: #7b8315;
$custom-light: #a5a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8315",
  "rgb": {
    "r": 123,
    "g": 131,
    "b": 21
  },
  "hsl": {
    "h": 64.364,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.58403,
    "c": 0.12459,
    "h": 114.1
  },
  "luminance": 0.20498
}

Semantic roles & 50–950 ramp

primary
#7B8315
secondary
#453CB8
accent
#39EF46
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8315

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

Preview Lab → · Contrast checker → · Palette generator →

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