#B2A878#B2A878

#B2A878 is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.8% C 0.066 H 97.8°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#B2A878
RGBrgb(178, 168, 120)
HSLhsl(50, 27%, 58%)
HSVhsv(50, 33%, 70%)
CMYKcmyk(0%, 5.6%, 32.6%, 30.2%)
CIE-LABlab(68.63, -3.83, 26.15)
CIE-LCHlch(68.63, 26.43, 98.34°)
OKLaboklab(72.82% -0.0089 0.0653)
OKLCHoklch(72.82% 0.066 97.8)
XYZxyz(35.7533, 38.8272, 23.3767)
Luminance0.3883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A878 #7882B2
analogous
#B28B78 #B2A878 #9FB278
triadic
#B2A878 #78B2A8 #A878B2
tetradic
#B2A878 #78B28B #7882B2 #B2789F
square
#B2A878 #78B28B #7882B2 #B2789F
split-complementary
#B2A878 #789FB2 #8B78B2
monochromatic
#706840 #978C56 #B2A878 #C8C19F #DEDAC6

Accessibility & contrast

On white

2.40
#B2A878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#B2A878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A878
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A878#FFFFFF#000000##000000
##B2A8781.002.408.778.77
#FFFFFF2.401.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A575
Deuteranopia (green-blind)
#B4A97A
Tritanopia (blue-blind)
#BBA19B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #b2a878;
/* rgb */ color: rgb(178, 168, 120);
/* oklch */ color: oklch(72.8% 0.066 97.8);
Tailwind
colors: {
  custom: {
    50: '#cac19f',
    500: '#b2a878',
    950: '#000000',
  },
}
SCSS
$custom: #b2a878;
$custom-light: #cac19f;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a878",
  "rgb": {
    "r": 178,
    "g": 168,
    "b": 120
  },
  "hsl": {
    "h": 49.655,
    "s": 27.358,
    "l": 58.431
  },
  "oklch": {
    "l": 0.72821,
    "c": 0.0659,
    "h": 97.8
  },
  "luminance": 0.38826
}

Semantic roles & 50–950 ramp

primary
#B2A878
secondary
#B7BBCE
accent
#75C464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #B2A878

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

Preview Lab → · Contrast checker → · Palette generator →

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