#B2A338#B2A338

#B2A338 is a light, vivid yellow. Relative luminance 0.359; OKLCH L 70.9% C 0.126 H 101.2°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#B2A338
RGBrgb(178, 163, 56)
HSLhsl(53, 52%, 46%)
HSVhsv(53, 69%, 70%)
CMYKcmyk(0%, 8.4%, 68.5%, 30.2%)
CIE-LABlab(66.48, -7.05, 55.13)
CIE-LCHlch(66.48, 55.58, 97.29°)
OKLaboklab(70.86% -0.0245 0.1236)
OKLCHoklch(70.86% 0.126 101.2)
XYZxyz(32.1725, 35.9463, 8.9843)
Luminance0.3594 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A338 #3847B2
analogous
#B26638 #B2A338 #84B238
triadic
#B2A338 #38B2A3 #A338B2
tetradic
#B2A338 #38B266 #3847B2 #B23884
square
#B2A338 #38B266 #3847B2 #B23884
split-complementary
#B2A338 #3884B2 #6638B2
monochromatic
#554E1B #837829 #B2A338 #CCBE5C #DAD08A

Accessibility & contrast

On white

2.56
#B2A338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#B2A338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A338
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A338#FFFFFF#000000##000000
##B2A3381.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E29
Deuteranopia (green-blind)
#B6A43E
Tritanopia (blue-blind)
#BF988D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b2a338;
/* rgb */ color: rgb(178, 163, 56);
/* oklch */ color: oklch(70.9% 0.126 101.2);
Tailwind
colors: {
  custom: {
    50: '#ccbd75',
    500: '#b2a338',
    950: '#000000',
  },
}
SCSS
$custom: #b2a338;
$custom-light: #ccbd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a338",
  "rgb": {
    "r": 178,
    "g": 163,
    "b": 56
  },
  "hsl": {
    "h": 52.623,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70862,
    "c": 0.12605,
    "h": 101.2
  },
  "luminance": 0.35945
}

Semantic roles & 50–950 ramp

primary
#B2A338
secondary
#818AC5
accent
#5EDC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B2A338

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

Preview Lab → · Contrast checker → · Palette generator →

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