#B8A742#B8A742

#B8A742 is a light, vivid yellow. Relative luminance 0.382; OKLCH L 72.4% C 0.122 H 99.7°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#B8A742
RGBrgb(184, 167, 66)
HSLhsl(51, 47%, 49%)
HSVhsv(51, 64%, 72%)
CMYKcmyk(0%, 9.2%, 64.1%, 27.8%)
CIE-LABlab(68.18, -5.95, 52.82)
CIE-LCHlch(68.18, 53.16, 96.43°)
OKLaboklab(72.37% -0.0206 0.1202)
OKLCHoklch(72.37% 0.122 99.7)
XYZxyz(34.5707, 38.2226, 10.7099)
Luminance0.3822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8A742 #4253B8
analogous
#B86C42 #B8A742 #8EB842
triadic
#B8A742 #42B8A7 #A742B8
tetradic
#B8A742 #42B86C #4253B8 #B8428E
square
#B8A742 #42B86C #4253B8 #B8428E
split-complementary
#B8A742 #428EB8 #6C42B8
monochromatic
#5E5522 #8B7E32 #B8A742 #CBBD6D #DBD19A

Accessibility & contrast

On white

2.43
#B8A742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#B8A742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8A742
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8A742#FFFFFF#000000##000000
##B8A7421.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A336
Deuteranopia (green-blind)
#BBA947
Tritanopia (blue-blind)
#C69C92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b8a742;
/* rgb */ color: rgb(184, 167, 66);
/* oklch */ color: oklch(72.4% 0.122 99.7);
Tailwind
colors: {
  custom: {
    50: '#d0c07b',
    500: '#b8a742',
    950: '#000000',
  },
}
SCSS
$custom: #b8a742;
$custom-light: #d0c07b;
$custom-dark: #000000;
JSON
{
  "hex": "#b8a742",
  "rgb": {
    "r": 184,
    "g": 167,
    "b": 66
  },
  "hsl": {
    "h": 51.356,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.7237,
    "c": 0.12194,
    "h": 99.7
  },
  "luminance": 0.38221
}

Semantic roles & 50–950 ramp

primary
#B8A742
secondary
#8F97C7
accent
#64D751
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B8A742

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

Preview Lab → · Contrast checker → · Palette generator →

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