#B3A840#B3A840

#B3A840 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 72.1% C 0.124 H 103.3°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#B3A840
RGBrgb(179, 168, 64)
HSLhsl(54, 47%, 48%)
HSVhsv(54, 64%, 70%)
CMYKcmyk(0%, 6.1%, 64.2%, 29.8%)
CIE-LABlab(67.99, -8.78, 53.36)
CIE-LCHlch(67.99, 54.07, 99.34°)
OKLaboklab(72.1% -0.0286 0.1212)
OKLCHoklch(72.1% 0.124 103.3)
XYZxyz(33.5197, 37.9604, 10.4109)
Luminance0.3796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B3A840 #404BB3
analogous
#B36F40 #B3A840 #84B340
triadic
#B3A840 #40B3A8 #A840B3
tetradic
#B3A840 #40B36F #404BB3 #B34084
square
#B3A840 #40B36F #404BB3 #B34084
split-complementary
#B3A840 #4084B3 #6F40B3
monochromatic
#595320 #867E30 #B3A840 #C9BF67 #D9D294

Accessibility & contrast

On white

2.44
#B3A840 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#B3A840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B3A840
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B3A840#FFFFFF#000000##000000
##B3A8401.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A333
Deuteranopia (green-blind)
#BAA846
Tritanopia (blue-blind)
#C09D92
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b3a840;
/* rgb */ color: rgb(179, 168, 64);
/* oklch */ color: oklch(72.1% 0.124 103.3);
Tailwind
colors: {
  custom: {
    50: '#cdc17a',
    500: '#b3a840',
    950: '#000000',
  },
}
SCSS
$custom: #b3a840;
$custom-light: #cdc17a;
$custom-dark: #000000;
JSON
{
  "hex": "#b3a840",
  "rgb": {
    "r": 179,
    "g": 168,
    "b": 64
  },
  "hsl": {
    "h": 54.261,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.72105,
    "c": 0.12449,
    "h": 103.3
  },
  "luminance": 0.37959
}

Semantic roles & 50–950 ramp

primary
#B3A840
secondary
#8A90C4
accent
#5ED751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #B3A840

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

Preview Lab → · Contrast checker → · Palette generator →

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