#AFB248#AFB248

#AFB248 is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.0% C 0.129 H 110.7°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#AFB248
RGBrgb(175, 178, 72)
HSLhsl(62, 42%, 49%)
HSVhsv(62, 60%, 70%)
CMYKcmyk(1.7%, 0%, 59.6%, 30.2%)
CIE-LABlab(70.47, -15.13, 52.42)
CIE-LCHlch(70.47, 54.56, 106.09°)
OKLaboklab(74.02% -0.0454 0.1204)
OKLCHoklch(74.02% 0.129 110.7)
XYZxyz(34.7702, 41.4235, 12.2935)
Luminance0.4142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB248 #4B48B2
analogous
#B28048 #AFB248 #7AB248
triadic
#AFB248 #48AFB2 #B248AF
tetradic
#AFB248 #48B280 #4B48B2 #B2487A
square
#AFB248 #48B280 #4B48B2 #B2487A
split-complementary
#AFB248 #487AB2 #8048B2
monochromatic
#595B25 #848636 #AFB248 #C3C671 #D6D79D

Accessibility & contrast

On white

2.26
#AFB248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#AFB248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB248
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB248#FFFFFF#000000##000000
##AFB2481.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFAB3C
Deuteranopia (green-blind)
#C0AE4E
Tritanopia (blue-blind)
#BAA89B
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afb248;
/* rgb */ color: rgb(175, 178, 72);
/* oklch */ color: oklch(74.0% 0.129 110.7);
Tailwind
colors: {
  custom: {
    50: '#c9c87f',
    500: '#afb248',
    950: '#000000',
  },
}
SCSS
$custom: #afb248;
$custom-light: #c9c87f;
$custom-dark: #000000;
JSON
{
  "hex": "#afb248",
  "rgb": {
    "r": 175,
    "g": 178,
    "b": 72
  },
  "hsl": {
    "h": 61.698,
    "s": 42.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.74022,
    "c": 0.1287,
    "h": 110.7
  },
  "luminance": 0.41423
}

Semantic roles & 50–950 ramp

primary
#AFB248
secondary
#9392C4
accent
#56D259
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#13130A
muted
#82827C

Preview Lab

Preview with #AFB248

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

Preview Lab → · Contrast checker → · Palette generator →

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