#AFB148#AFB148

#AFB148 is a light, vivid yellow. Relative luminance 0.410; OKLCH L 73.8% C 0.128 H 110.2°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#AFB148
RGBrgb(175, 177, 72)
HSLhsl(61, 42%, 49%)
HSVhsv(61, 59%, 69%)
CMYKcmyk(1.1%, 0%, 59.3%, 30.6%)
CIE-LABlab(70.19, -14.61, 52.12)
CIE-LCHlch(70.19, 54.13, 105.66°)
OKLaboklab(73.8% -0.044 0.1198)
OKLCHoklch(73.8% 0.128 110.2)
XYZxyz(34.5720, 41.0270, 12.2275)
Luminance0.4103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB148 #4A48B1
analogous
#B17F48 #AFB148 #7BB148
triadic
#AFB148 #48AFB1 #B148AF
tetradic
#AFB148 #48B17F #4A48B1 #B1487B
square
#AFB148 #48B17F #4A48B1 #B1487B
split-complementary
#AFB148 #487BB1 #7F48B1
monochromatic
#595A25 #848536 #AFB148 #C4C571 #D6D79C

Accessibility & contrast

On white

2.28
#AFB148 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#AFB148 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB148
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB148#FFFFFF#000000##000000
##AFB1481.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEAA3C
Deuteranopia (green-blind)
#BFAD4E
Tritanopia (blue-blind)
#BAA79B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb148;
/* rgb */ color: rgb(175, 177, 72);
/* oklch */ color: oklch(73.8% 0.128 110.2);
Tailwind
colors: {
  custom: {
    50: '#c9c87f',
    500: '#afb148',
    950: '#000000',
  },
}
SCSS
$custom: #afb148;
$custom-light: #c9c87f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb148",
  "rgb": {
    "r": 175,
    "g": 177,
    "b": 72
  },
  "hsl": {
    "h": 61.143,
    "s": 42.169,
    "l": 48.824
  },
  "oklch": {
    "l": 0.73801,
    "c": 0.1276,
    "h": 110.2
  },
  "luminance": 0.41026
}

Semantic roles & 50–950 ramp

primary
#AFB148
secondary
#9291C3
accent
#56D258
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130A
muted
#82827C

Preview Lab

Preview with #AFB148

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

Preview Lab → · Contrast checker → · Palette generator →

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