#A78B1F#A78B1F

#A78B1F is a light, vivid yellow. Relative luminance 0.268; OKLCH L 64.5% C 0.123 H 93.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#A78B1F
RGBrgb(167, 139, 31)
HSLhsl(48, 69%, 39%)
HSVhsv(48, 81%, 65%)
CMYKcmyk(0%, 16.8%, 81.4%, 34.5%)
CIE-LABlab(58.77, -0.16, 56.70)
CIE-LCHlch(58.77, 56.70, 90.16°)
OKLaboklab(64.46% -0.0069 0.1225)
OKLCHoklch(64.46% 0.123 93.2)
XYZxyz(25.4178, 26.7812, 5.1266)
Luminance0.2678 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A78B1F #1F3BA7
analogous
#A7471F #A78B1F #7FA71F
triadic
#A78B1F #1FA78B #8B1FA7
tetradic
#A78B1F #1FA747 #1F3BA7 #A71F7F
square
#A78B1F #1FA747 #1F3BA7 #A71F7F
split-complementary
#A78B1F #1F7FA7 #471FA7
monochromatic
#40350C #736015 #A78B1F #D8B42B #E1C75F

Accessibility & contrast

On white

3.30
#A78B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#A78B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A78B1F
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A78B1F#FFFFFF#000000##000000
##A78B1F1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8902
Deuteranopia (green-blind)
#A29126
Tritanopia (blue-blind)
#B57F77
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #a78b1f;
/* rgb */ color: rgb(167, 139, 31);
/* oklch */ color: oklch(64.5% 0.123 93.2);
Tailwind
colors: {
  custom: {
    50: '#c5ac65',
    500: '#a78b1f',
    950: '#000000',
  },
}
SCSS
$custom: #a78b1f;
$custom-light: #c5ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#a78b1f",
  "rgb": {
    "r": 167,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 47.647,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.64461,
    "c": 0.12273,
    "h": 93.2
  },
  "luminance": 0.2678
}

Semantic roles & 50–950 ramp

primary
#A78B1F
secondary
#5C72C6
accent
#60EC3C
background
#FCFAF6
surface
#F9F4EB
border
#D2CEC6
text
#141006
muted
#827F7A

Preview Lab

Preview with #A78B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#A78B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva