#B2A238#B2A238

#B2A238 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.125 H 100.6°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#B2A238
RGBrgb(178, 162, 56)
HSLhsl(52, 52%, 46%)
HSVhsv(52, 69%, 70%)
CMYKcmyk(0%, 9%, 68.5%, 30.2%)
CIE-LABlab(66.21, -6.52, 54.86)
CIE-LCHlch(66.21, 55.24, 96.78°)
OKLaboklab(70.65% -0.023 0.1231)
OKLCHoklch(70.65% 0.125 100.6)
XYZxyz(31.9956, 35.5926, 8.9253)
Luminance0.3559 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A238 #3848B2
analogous
#B26538 #B2A238 #85B238
triadic
#B2A238 #38B2A2 #A238B2
tetradic
#B2A238 #38B265 #3848B2 #B23885
square
#B2A238 #38B265 #3848B2 #B23885
split-complementary
#B2A238 #3885B2 #6538B2
monochromatic
#554D1B #837829 #B2A238 #CCBD5C #DAD08A

Accessibility & contrast

On white

2.59
#B2A238 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.12
#B2A238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A238
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A238#FFFFFF#000000##000000
##B2A2381.002.598.128.12
#FFFFFF2.591.0021.0021.00
#0000008.1221.001.001.00
##0000008.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D29
Deuteranopia (green-blind)
#B6A43E
Tritanopia (blue-blind)
#C0978C
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b2a238;
/* rgb */ color: rgb(178, 162, 56);
/* oklch */ color: oklch(70.6% 0.125 100.6);
Tailwind
colors: {
  custom: {
    50: '#ccbd75',
    500: '#b2a238',
    950: '#000000',
  },
}
SCSS
$custom: #b2a238;
$custom-light: #ccbd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a238",
  "rgb": {
    "r": 178,
    "g": 162,
    "b": 56
  },
  "hsl": {
    "h": 52.131,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.70646,
    "c": 0.1252,
    "h": 100.6
  },
  "luminance": 0.35591
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B2A238

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

Preview Lab → · Contrast checker → · Palette generator →

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