#7B8310#7B8310

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

Color values

HEX#7B8310
RGBrgb(123, 131, 16)
HSLhsl(64, 78%, 29%)
HSVhsv(64, 88%, 51%)
CMYKcmyk(6.1%, 0%, 87.8%, 48.6%)
CIE-LABlab(52.38, -16.49, 53.82)
CIE-LCHlch(52.38, 56.29, 107.04°)
OKLaboklab(58.38% -0.0516 0.1156)
OKLCHoklch(58.38% 0.127 114)
XYZxyz(16.3787, 20.4813, 3.5806)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8310 #181083
analogous
#835210 #7B8310 #428310
triadic
#7B8310 #107B83 #83107B
tetradic
#7B8310 #108352 #181083 #831042
square
#7B8310 #108352 #181083 #831042
split-complementary
#7B8310 #104283 #521083
monochromatic
#1A1B03 #484C09 #7B8310 #AEBA17 #D8E529

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7b8310;
/* rgb */ color: rgb(123, 131, 16);
/* oklch */ color: oklch(58.4% 0.127 114.0);
Tailwind
colors: {
  custom: {
    50: '#a5a65d',
    500: '#7b8310',
    950: '#000000',
  },
}
SCSS
$custom: #7b8310;
$custom-light: #a5a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8310",
  "rgb": {
    "r": 123,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 64.174,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.58383,
    "c": 0.12657,
    "h": 114
  },
  "luminance": 0.20481
}

Semantic roles & 50–950 ramp

primary
#7B8310
secondary
#3F36B9
accent
#33F541
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8310

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

Preview Lab → · Contrast checker → · Palette generator →

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