#B3A540#B3A540

#B3A540 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.5% C 0.122 H 101.4°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#B3A540
RGBrgb(179, 165, 64)
HSLhsl(53, 47%, 48%)
HSVhsv(53, 64%, 70%)
CMYKcmyk(0%, 7.8%, 64.2%, 29.8%)
CIE-LABlab(67.18, -7.19, 52.49)
CIE-LCHlch(67.18, 52.98, 97.80°)
OKLaboklab(71.46% -0.0241 0.1193)
OKLCHoklch(71.46% 0.122 101.4)
XYZxyz(32.9723, 36.8655, 10.2284)
Luminance0.3686 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3A540 #404EB3
analogous
#B36C40 #B3A540 #87B340
triadic
#B3A540 #40B3A5 #A540B3
tetradic
#B3A540 #40B36C #404EB3 #B34087
square
#B3A540 #40B36C #404EB3 #B34087
split-complementary
#B3A540 #4087B3 #6C40B3
monochromatic
#595220 #867B30 #B3A540 #C9BD67 #D9D194

Accessibility & contrast

On white

2.51
#B3A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#B3A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3A540
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3A540#FFFFFF#000000##000000
##B3A5401.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A034
Deuteranopia (green-blind)
#B8A646
Tritanopia (blue-blind)
#C09A90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b3a540;
/* rgb */ color: rgb(179, 165, 64);
/* oklch */ color: oklch(71.5% 0.122 101.4);
Tailwind
colors: {
  custom: {
    50: '#cdbf7a',
    500: '#b3a540',
    950: '#000000',
  },
}
SCSS
$custom: #b3a540;
$custom-light: #cdbf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b3a540",
  "rgb": {
    "r": 179,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 52.696,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.71457,
    "c": 0.12173,
    "h": 101.4
  },
  "luminance": 0.36864
}

Semantic roles & 50–950 ramp

primary
#B3A540
secondary
#8A91C4
accent
#61D751
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B3A540

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

Preview Lab → · Contrast checker → · Palette generator →

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