#7B8318#7B8318

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

Color values

HEX#7B8318
RGBrgb(123, 131, 24)
HSLhsl(64, 69%, 30%)
HSVhsv(64, 82%, 51%)
CMYKcmyk(6.1%, 0%, 81.7%, 48.6%)
CIE-LABlab(52.41, -16.22, 51.70)
CIE-LCHlch(52.41, 54.19, 107.42°)
OKLaboklab(58.42% -0.0503 0.1125)
OKLCHoklch(58.42% 0.123 114.1)
XYZxyz(16.4501, 20.5098, 3.9562)
Luminance0.2051 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8318 #201883
analogous
#835518 #7B8318 #458318
triadic
#7B8318 #187B83 #83187B
tetradic
#7B8318 #188355 #201883 #831845
square
#7B8318 #188355 #201883 #831845
split-complementary
#7B8318 #184583 #551883
monochromatic
#1A1C05 #4A4F0F #7B8318 #ACB721 #CFDB3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8318#FFFFFF#000000##000000
##7B83181.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)
#847B70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #7b8318;
/* rgb */ color: rgb(123, 131, 24);
/* oklch */ color: oklch(58.4% 0.123 114.1);
Tailwind
colors: {
  custom: {
    50: '#a5a660',
    500: '#7b8318',
    950: '#000000',
  },
}
SCSS
$custom: #7b8318;
$custom-light: #a5a660;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8318",
  "rgb": {
    "r": 123,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 64.486,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58418,
    "c": 0.1232,
    "h": 114.1
  },
  "luminance": 0.2051
}

Semantic roles & 50–950 ramp

primary
#7B8318
secondary
#4940B7
accent
#3CEC49
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8318

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

Preview Lab → · Contrast checker → · Palette generator →

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