#AFB545#AFB545

#AFB545 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.7% C 0.135 H 112.1°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#AFB545
RGBrgb(175, 181, 69)
HSLhsl(63, 45%, 49%)
HSVhsv(63, 62%, 71%)
CMYKcmyk(3.3%, 0%, 61.9%, 29%)
CIE-LABlab(71.28, -16.87, 54.61)
CIE-LCHlch(71.28, 57.16, 107.16°)
OKLaboklab(74.66% -0.0507 0.1246)
OKLCHoklch(74.66% 0.135 112.1)
XYZxyz(35.2782, 42.5921, 11.9918)
Luminance0.4259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB545 #4B45B5
analogous
#B58345 #AFB545 #77B545
triadic
#AFB545 #45AFB5 #B545AF
tetradic
#AFB545 #45B583 #4B45B5 #B54577
square
#AFB545 #45B583 #4B45B5 #B54577
split-complementary
#AFB545 #4577B5 #8345B5
monochromatic
#595C23 #848934 #AFB545 #C3C86F #D6D99B

Accessibility & contrast

On white

2.21
#AFB545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#AFB545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB545
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB545#FFFFFF#000000##000000
##AFB5451.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AD37
Deuteranopia (green-blind)
#C2B04C
Tritanopia (blue-blind)
#BAAB9E
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afb545;
/* rgb */ color: rgb(175, 181, 69);
/* oklch */ color: oklch(74.7% 0.135 112.1);
Tailwind
colors: {
  custom: {
    50: '#cacb7e',
    500: '#afb545',
    950: '#000000',
  },
}
SCSS
$custom: #afb545;
$custom-light: #cacb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb545",
  "rgb": {
    "r": 175,
    "g": 181,
    "b": 69
  },
  "hsl": {
    "h": 63.214,
    "s": 44.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.74657,
    "c": 0.13455,
    "h": 112.1
  },
  "luminance": 0.42591
}

Semantic roles & 50–950 ramp

primary
#AFB545
secondary
#9391C5
accent
#53D55A
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB545

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

Preview Lab → · Contrast checker → · Palette generator →

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