#B2A730#B2A730

#B2A730 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.7% C 0.135 H 103.9°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#B2A730
RGBrgb(178, 167, 48)
HSLhsl(55, 58%, 44%)
HSVhsv(55, 73%, 70%)
CMYKcmyk(0%, 6.2%, 73%, 30.2%)
CIE-LABlab(67.51, -9.57, 59.27)
CIE-LCHlch(67.51, 60.04, 99.17°)
OKLaboklab(71.67% -0.0325 0.131)
OKLCHoklch(71.67% 0.135 103.9)
XYZxyz(32.7137, 37.3171, 8.2755)
Luminance0.3732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2A730 #303BB2
analogous
#B26630 #B2A730 #7CB230
triadic
#B2A730 #30B2A7 #A730B2
tetradic
#B2A730 #30B266 #303BB2 #B2307C
square
#B2A730 #30B266 #303BB2 #B2307C
split-complementary
#B2A730 #307CB2 #6630B2
monochromatic
#524D16 #827A23 #B2A730 #D0C550 #DDD580

Accessibility & contrast

On white

2.48
#B2A730 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#B2A730 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2A730
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2A730#FFFFFF#000000##000000
##B2A7301.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A11B
Deuteranopia (green-blind)
#BAA738
Tritanopia (blue-blind)
#BF9B90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b2a730;
/* rgb */ color: rgb(178, 167, 48);
/* oklch */ color: oklch(71.7% 0.135 103.9);
Tailwind
colors: {
  custom: {
    50: '#cdc071',
    500: '#b2a730',
    950: '#000000',
  },
}
SCSS
$custom: #b2a730;
$custom-light: #cdc071;
$custom-dark: #000000;
JSON
{
  "hex": "#b2a730",
  "rgb": {
    "r": 178,
    "g": 167,
    "b": 48
  },
  "hsl": {
    "h": 54.923,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71667,
    "c": 0.13493,
    "h": 103.9
  },
  "luminance": 0.37316
}

Semantic roles & 50–950 ramp

primary
#B2A730
secondary
#787FC6
accent
#54E147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B2A730

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

Preview Lab → · Contrast checker → · Palette generator →

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