#B2A740#B2A740

#B2A740 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.8% C 0.124 H 103.2°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#B2A740
RGBrgb(178, 167, 64)
HSLhsl(54, 47%, 47%)
HSVhsv(54, 64%, 70%)
CMYKcmyk(0%, 6.2%, 64%, 30.2%)
CIE-LABlab(67.63, -8.68, 52.95)
CIE-LCHlch(67.63, 53.66, 99.31°)
OKLaboklab(71.8% -0.0283 0.1203)
OKLCHoklch(71.8% 0.124 103.2)
XYZxyz(33.1055, 37.4738, 10.3388)
Luminance0.3747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A740 #404BB2
analogous
#B26E40 #B2A740 #84B240
triadic
#B2A740 #40B2A7 #A740B2
tetradic
#B2A740 #40B26E #404BB2 #B24084
square
#B2A740 #40B26E #404BB2 #B24084
split-complementary
#B2A740 #4084B2 #6E40B2
monochromatic
#585320 #857D30 #B2A740 #C8BF67 #D8D294

Accessibility & contrast

On white

2.47
#B2A740 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#B2A740 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A740
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A740#FFFFFF#000000##000000
##B2A7401.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A233
Deuteranopia (green-blind)
#B9A746
Tritanopia (blue-blind)
#BF9C91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b2a740;
/* rgb */ color: rgb(178, 167, 64);
/* oklch */ color: oklch(71.8% 0.124 103.2);
Tailwind
colors: {
  custom: {
    50: '#ccc07a',
    500: '#b2a740',
    950: '#000000',
  },
}
SCSS
$custom: #b2a740;
$custom-light: #ccc07a;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a740",
  "rgb": {
    "r": 178,
    "g": 167,
    "b": 64
  },
  "hsl": {
    "h": 54.211,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.71798,
    "c": 0.12359,
    "h": 103.2
  },
  "luminance": 0.37473
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B2A740

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

Preview Lab → · Contrast checker → · Palette generator →

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