#7B8317#7B8317

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

Color values

HEX#7B8317
RGBrgb(123, 131, 23)
HSLhsl(64, 70%, 30%)
HSVhsv(64, 82%, 51%)
CMYKcmyk(6.1%, 0%, 82.4%, 48.6%)
CIE-LABlab(52.40, -16.26, 52.00)
CIE-LCHlch(52.40, 54.48, 107.37°)
OKLaboklab(58.41% -0.0504 0.1129)
OKLCHoklch(58.41% 0.124 114.1)
XYZxyz(16.4399, 20.5058, 3.9024)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8317 #1F1783
analogous
#835517 #7B8317 #458317
triadic
#7B8317 #177B83 #83177B
tetradic
#7B8317 #178355 #1F1783 #831745
square
#7B8317 #178355 #1F1783 #831745
split-complementary
#7B8317 #174583 #551783
monochromatic
#191B05 #4A4F0E #7B8317 #ACB720 #D0DC38

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8317#FFFFFF#000000##000000
##7B83171.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)
#8D7E22
Tritanopia (blue-blind)
#847B6F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7b8317;
/* rgb */ color: rgb(123, 131, 23);
/* oklch */ color: oklch(58.4% 0.124 114.1);
Tailwind
colors: {
  custom: {
    50: '#a5a65f',
    500: '#7b8317',
    950: '#000000',
  },
}
SCSS
$custom: #7b8317;
$custom-light: #a5a65f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8317",
  "rgb": {
    "r": 123,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 64.444,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58413,
    "c": 0.12368,
    "h": 114.1
  },
  "luminance": 0.20505
}

Semantic roles & 50–950 ramp

primary
#7B8317
secondary
#483FB7
accent
#3BED48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8317

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

Preview Lab → · Contrast checker → · Palette generator →

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